Skip to content

Commit

Permalink
Merge pull request #1973 from akto-api-security/staging-action-pr-review
Browse files Browse the repository at this point in the history
running staging build only if manually triggerd or pr against master branch is approved
  • Loading branch information
notshivansh authored Jan 14, 2025
2 parents 9ed4ed3 + 02958a7 commit d080dbb
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 d080dbb

Please sign in to comment.