Skip to content

Commit

Permalink
minor changes to workflow (bcgov#1262)
Browse files Browse the repository at this point in the history
prevents non collaborator workflow from running when a pull request is created by a collaborator.
adds the environment to the collaborator workflow, this might fix the build issue.
  • Loading branch information
jasonchung1871 committed Jan 30, 2024
1 parent 374996e commit 731ffc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/on_pr_opened.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ concurrency:
jobs:
build:
name: Build & Push
if: "github.event.pull_request.author_association != 'COLLABORATOR' && github.event.review.author_association != 'OWNER'"
environment:
name: pr-external
url: https://${{ env.ACRONYM }}-dev.apps.silver.devops.gov.bc.ca/pr-${{ github.event.number }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/on_pr_opened_collaborator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
build:
name: Build & Push
if: "github.event.pull_request.author_association == 'COLLABORATOR' || github.event.review.author_association == 'OWNER'"
environment:
name: pr
url: https://${{ env.ACRONYM }}-dev.apps.silver.devops.gov.bc.ca/pr-${{ github.event.number }}
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand Down

0 comments on commit 731ffc1

Please sign in to comment.