-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stop duplicate gate workflow runs (#1433)
The integration tests is triggered twice on force pushes to master. We only want it to run once. * trigger integration tests on merges to master branch * trigger integration tests on creation of branches from PRs * do not trigger integration tests twice
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: branch-integration-tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
integration-tests: | ||
if: ${{ github.ref != 'refs/heads/master' }} | ||
uses: "./.github/workflows/integration-tests.yaml" | ||
with: | ||
# role generated from https://github.com/Sceptre/sceptre-aws/blob/master/config/prod/gh-oidc-sceptre-tests.yaml | ||
role-to-assume: "arn:aws:iam::743644221192:role/gh-oidc-sceptre-tests" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
types: | ||
- completed | ||
branches: | ||
- '*' | ||
- master | ||
|
||
jobs: | ||
integration-tests: | ||
|