Skip to content

Commit 660f98e

Browse files
committed
Revert "Issue #688 - short circuit push builds if commit already associated with"
This reverts commit 669b37b.
1 parent 043441f commit 660f98e

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

.github/workflows/ibllib_ci.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,9 @@ on:
1010
branches: [ master, develop ]
1111

1212
jobs:
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

0 commit comments

Comments
 (0)