Skip to content

Commit

Permalink
Check for event type at the beginning of the job
Browse files Browse the repository at this point in the history
  • Loading branch information
sshrihar committed Sep 26, 2024
1 parent 1157754 commit 8b96367
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ on:
jobs:
build_and_deploy:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
if: github.event_name != 'push' || startsWith(github.head_ref, 'hosted/')
environment: ${{ inputs.environment }}
permissions:
id-token: write
contents: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/hosted-dev-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ on:

jobs:
deploy:
if: github.event_name != 'push' || startsWith(github.head_ref, 'hosted/')
uses: ./.github/workflows/build_and_deploy.yml
secrets: inherit

0 comments on commit 8b96367

Please sign in to comment.