Skip to content

Create N3GOV-54.json #113

Create N3GOV-54.json

Create N3GOV-54.json #113

Workflow file for this run

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