ci: only cancel previous PR runs on Forgejo Actions
1 files changed, 1 insertions(+), 1 deletions(-)
.forgejo
workflows
.forgejo/workflows/ci.yaml+1-1
| ... | @@ -7,7 +7,7 @@ on: | ... | @@ -7,7 +7,7 @@ on: |
| 7 | workflow_dispatch: | 7 | workflow_dispatch: |
| 8 | concurrency: | 8 | concurrency: |
| 9 | group: ${{ github.head_ref || github.run_id }}-${{ github.actor }} | 9 | group: ${{ github.head_ref || github.run_id }}-${{ github.actor }} |
| 10 | cancel-in-progress: true | 10 | cancel-in-progress: ${{ github.event_name == 'pull_request' }} |
| 11 | permissions: | 11 | permissions: |
| 12 | contents: read | 12 | contents: read |
| 13 | jobs: | 13 | jobs: |