Skip to content

Commit

Permalink
docs: update documentaiton around concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Apr 22, 2024
1 parent 2eaa440 commit 8385e5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ permissions:
pull-requests: write

concurrency:
group: ${{ github.workflow }}-${{ github.event.workflow_run.pull_requests[0].number || 'unknown' }}
group: ${{ github.workflow }}-${{ github.event.workflow_run.pull_requests[0].number }}
cancel-in-progress: true

jobs:
reusable-workflow:
if: github.event.workflow_run.pull_requests[0]
if: github.event.workflow_run.event == 'pull_reqeust' || github.event.workflow_run.event == 'pull_request_target'
uses: ./.github/workflows/comment.yml
matrix:
if: github.event.workflow_run.pull_requests[0]
if: github.event.workflow_run.event == 'pull_reqeust' || github.event.workflow_run.event == 'pull_request_target'
runs-on: ubuntu-latest
outputs:
templates: ${{ steps.matrix.outputs.templates }}
Expand All @@ -39,7 +39,7 @@ jobs:
working-directory: templates
action:
needs: [matrix]
if: github.event.workflow_run.pull_requests[0]
if: github.event.workflow_run.event == 'pull_reqeust' || github.event.workflow_run.event == 'pull_request_target'
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ permissions:
pull-requests: write

concurrency:
group: ${{ github.workflow }}-${{ github.event.workflow_run.pull_requests[0].number || 'unknown' }}
group: ${{ github.workflow }}-${{ github.event.workflow_run.pull_requests[0].number }}
cancel-in-progress: true

jobs:
comment:
if: github.event.workflow_run.pull_requests[0]
if: github.event.workflow_run.event == 'pull_reqeust' || github.event.workflow_run.event == 'pull_request_target'
uses: ipdxco/sorted-pr-checks/.github/workflows/comment.yml@v1
```
Expand Down

0 comments on commit 8385e5a

Please sign in to comment.