Skip to content

Commit 02958a7

Browse files
committed
running staging build only if manually triggerd or pr against master branch is approved
1 parent 9ed4ed3 commit 02958a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/staging.yml

+2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ on:
55
push:
66
branches: [master]
77
pull_request:
8+
types: [ submitted ]
89
workflow_dispatch:
910

1011
jobs:
1112
build:
13+
if: (github.event.pull_request.base.ref == 'master' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')
1214
runs-on: ubuntu-22.04
1315
outputs:
1416
IMAGE_TAG: ${{ steps.docker_tag.outputs.IMAGE_TAG }}

0 commit comments

Comments
 (0)