File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,27 @@ name: Docker Deploy
77
88on :
99 release :
10- types : [created]
10+ types :
11+ - published
1112 workflow_dispatch :
1213 # Allow this workflow to be triggered manually
1314
1415jobs :
1516 deploy-docker-image :
17+ # We want to trigger this job ONLY for a published release
18+ # related to the "ibm-openapi-validator" package.
19+ if : " contains(github.ref_name, 'ibm-openapi-validator')"
1620 name : Deploy image
1721 runs-on : ubuntu-latest
1822
1923 steps :
24+ # Display some info about the build for debugging purposes.
25+ - name : Trigger info
26+ run : |
27+ echo "Build triggered by event: " ${{ github.event_name }}
28+ echo " git ref: " ${{ github.ref }}
29+ echo " git ref_name: " ${{ github.ref_name }}
30+
2031 - name : Checkout repository
2132 uses : actions/checkout@v4
2233
You can’t perform that action at this time.
0 commit comments