-
Notifications
You must be signed in to change notification settings - Fork 62
36 lines (36 loc) · 1.27 KB
/
create-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
30
31
32
33
34
35
36
name: Create ceremony
on:
create
jobs:
compile-and-prepare:
if: ${{ startsWith(github.ref_name, 'ceremony/') }}
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
lfs: true
- name: Checkout LFS objects
run: git lfs checkout
- name: Run toolkit
run: |
docker build -q -t vocdoni/zk-voceremony-create --target zk-voceremony-create .
docker run --rm -qt -v ./:/app --env-file ./ceremony.env vocdoni/zk-voceremony-create
- name: Commit ceremony artifacts
if : ${{ success() }}
uses: stefanzweifel/git-auto-commit-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commit_message: Create '${{ github.ref }}' ceremony
commit_options: '--no-verify'
commit_user_name: ${{ github.actor }}
- name: Create PR to end ceremony
if : ${{ success() }}
run: gh pr create -B main -t "$PR_TITLE" -b "$PR_BODY" -l "$PR_LABELS" -a "$PR_ASSIGNEES"
env:
PR_TITLE: "On going ceremony: ${{ github.ref }}"
PR_BODY: "Close this PR without merge it to ends this ceremony"
PR_LABELS: "on-going-ceremony"
PR_ASSIGNEES: ${{ github.actor }}
GITHUB_TOKEN: ${{ github.token }}