Skip to content

Contribution: from alanbover to 'ceremony/vocdoni-zkcensus-ceremony' ceremony #77

Contribution: from alanbover to 'ceremony/vocdoni-zkcensus-ceremony' ceremony

Contribution: from alanbover to 'ceremony/vocdoni-zkcensus-ceremony' ceremony #77

name: Verify contribution
on:
pull_request_target:
branches:
- ceremony/*
paths:
- contributions/*
permissions: write-all
jobs:
verify-contribution:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Build toolkit
run: |
docker build . -q --target zk-voceremony --tag vocdoni/zk-voceremony
- name: Checkout the fork
uses: actions/checkout@v4
with:
lfs: true
ref: ${{ github.event.pull_request.head.sha }}
- name: Checkout LFS objects
run: git lfs checkout
- name: Run toolkit
run: |
docker run --rm -qt -v ./:/app --env-file ./ceremony.env vocdoni/zk-voceremony verify
- name: Merge PR branch
if: success() && contains(github.event.pull_request.title, 'Contribution:')
run: |
gh pr merge --admin --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}