-
Notifications
You must be signed in to change notification settings - Fork 63
29 lines (29 loc) · 1.13 KB
/
finish-ceremony.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Finish ceremony
on:
pull_request:
types: [ closed ]
jobs:
finish-ceremony:
if: ${{ github.event.pull_request.merged == false && github.actor == github.event.pull_request.assignee.login && contains(github.event.pull_request.labels.*.name, 'on-going-ceremony') && startsWith(github.event.pull_request.head.ref, 'ceremony/') }}
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
lfs: true
ref: ${{ github.event.pull_request.head.ref }}
- name: Checkout LFS objects
run: git lfs checkout
- name: Run toolkit
run: |
docker build . -q --target zk-voceremony --tag vocdoni/zk-voceremony
docker run --rm -qt -v ./:/app --env-file ./ceremony.env vocdoni/zk-voceremony finish
- name: Commit ceremony artifacts
if : ${{ success() }}
uses: stefanzweifel/git-auto-commit-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commit_message: Finish '${{ github.event.pull_request.head.ref }}' ceremony
commit_options: '--no-verify'
commit_user_name: ${{ github.actor }}