Contribution: from alanbover to 'ceremony/vocdoni-zkcensus-ceremony' ceremony #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Contribution timeout | |
on: | |
pull_request_target: | |
branches: | |
- ceremony/* | |
paths: | |
- .lock | |
permissions: write-all | |
jobs: | |
timeout-contribution: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait 10 minutes | |
run: sleep 600 | |
- name: Close PR branch if still a draft | |
if: success() && contains(github.event.pull_request.title, 'Contribution:') | |
run: | | |
if gh pr view "$PR_URL" --json isDraft -q .isDraft | grep true; then | |
gh pr close -c "Timed out" "$PR_URL" | |
fi | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |