Skip to content

Commit

Permalink
Prevent duplicate workflow runs for PRs (#1938)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecdye authored Dec 23, 2024
1 parent 5cd34e8 commit 1ca33b9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/bats-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ on:
jobs:
bats-tests:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
services:
registry:
image: registry:2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name

steps:
- name: Checkout repository
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/installation-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ on:
jobs:
installation-tests:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
services:
registry:
image: registry:2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/shellcheck-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:
jobs:
shellcheck:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name

steps:
- name: Checkout repository
Expand Down

0 comments on commit 1ca33b9

Please sign in to comment.