File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 1010 branches : [ master, develop ]
1111
1212jobs :
13- detect-outstanding-prs : # Don't run builds for push events if associated with PR
14- runs-on : ubuntu-latest
15- env :
16- GH_TOKEN : ${{ github.token }}
17- outputs :
18- abort : ${{ steps.debounce.outputs.abort }}
19- steps :
20- - name : Debounce
21- if : github.event_name == 'push'
22- id : debounce
23- run : |
24- pr_branches=$(gh pr list --json headRefName --repo $GITHUB_REPOSITORY)
25- if [[ $(echo "$pr_branches" | jq -r --arg GITHUB_REF '.[].headRefName | select(. == $GITHUB_REF)') ]]; then
26- echo "This push is associated with a pull request. Skipping the job."
27- echo "abort=true" >> "$GITHUB_OUTPUT"
28- fi
29-
3013 build :
3114 name : build (${{ matrix.python-version }}, ${{ matrix.os }})
3215 runs-on : ${{ matrix.os }}
33- needs : debounce
34- if : needs.debounce.outputs.abort != 'true'
3516 strategy :
3617 fail-fast : false # Whether to stop execution of other instances
3718 max-parallel : 2
You can’t perform that action at this time.
0 commit comments