Skip to content

Commit

Permalink
running staging build only if manually triggerd or pr against master …
Browse files Browse the repository at this point in the history
…branch is approved
  • Loading branch information
ag060 committed Jan 14, 2025
1 parent 9ed4ed3 commit 02958a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ on:
push:
branches: [master]
pull_request:
types: [ submitted ]
workflow_dispatch:

jobs:
build:
if: (github.event.pull_request.base.ref == 'master' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')
runs-on: ubuntu-22.04
outputs:
IMAGE_TAG: ${{ steps.docker_tag.outputs.IMAGE_TAG }}
Expand Down

0 comments on commit 02958a7

Please sign in to comment.