fix: concurrency and job atomicity

This commit is contained in:
David Ordás 2022-09-04 05:35:39 +02:00
parent 2e8487ef53
commit d188dfcf49
No known key found for this signature in database
GPG Key ID: 6FD751229911593E

View File

@ -11,7 +11,7 @@ permissions:
# This allows a subsequently queued workflow run to interrupt previous runs # This allows a subsequently queued workflow run to interrupt previous runs
concurrency: concurrency:
group: '${{ github.workflow }} @ ${{ github.head_ref || github.ref || github.run_id }}' group: '${{ github.workflow }} @ ${{ github.run_id }}'
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
@ -19,6 +19,15 @@ jobs:
process-issues: process-issues:
name: Process Issues name: Process Issues
# This allows a subsequently queued workflow run to wait for previous runs completion
concurrency:
group: '${{ github.workflow }} @ ${{ github.run_id }} :: issues'
cancel-in-progress: false
outputs:
staled-issues: ${{ steps.staler.outputs.staled-issues-prs }}
closed-issues: ${{ steps.staler.outputs.closed-issues-prs }}
permissions: permissions:
issues: write issues: write
@ -51,6 +60,15 @@ jobs:
process-prs: process-prs:
name: Process Pull Requests name: Process Pull Requests
# This allows a subsequently queued workflow run to wait for previous runs completion
concurrency:
group: '${{ github.workflow }} @ ${{ github.run_id }} :: PRs'
cancel-in-progress: false
outputs:
staled-prs: ${{ steps.staler.outputs.staled-issues-prs }}
closed-prs: ${{ steps.staler.outputs.closed-issues-prs }}
permissions: permissions:
pull-requests: write pull-requests: write