N3GOV-52 #112
Workflow file for this run
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
on: | |
pull_request: | |
types: [opened, reopened, edited, synchronize, ready_for_review, labeled] | |
paths: | |
- proposals/N3GOV-*.json | |
name: Wait for delay before merging | |
jobs: | |
check_delay: | |
if: "! github.event.pull_request.draft" | |
name: Check that PR has been unchanged for more than 24 hours | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Run CommitsWithinTime script | |
id: check-new-commits | |
uses: adriangl/check-new-commits-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
seconds: 86400 | |
branch: ${{ github.event.pull_request.head.sha }} | |
- name: Remove frozen label | |
uses: mondeja/remove-labels-gh-action@v1 | |
if: steps.check-new-commits.outputs.has-new-commits == 'true' | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
labels: frozen | |
- name: Block merge if delay not respected | |
if: steps.check-new-commits.outputs.has-new-commits == 'true' | |
run: exit 1 |