File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ jobs:
3636 echo "::debug event=${{ toJSON( github.event ) }}"
3737 echo "::endgroup::"
3838 - name : dryrun-build
39- if : ${{ github.event_name == 'pull_request' }}
39+ if : ${{ github.event_name == 'pull_request' || ( github.event_name == 'release' && startsWith( steps.process_event.outputs.tag, env.IMAGE_VERSION_PREFIX ) && github.event.release.prerelease ) }}
4040 run : docker build ./${{ env.IMAGE_NAME }}
4141 - name : build-and-push
42- if : ${{ github.event_name == 'release' && startsWith( steps.process_event.outputs.tag env.IMAGE_VERSION_PREFIX ) }}
42+ if : ${{ github.event_name == 'release' && startsWith( steps.process_event.outputs.tag, env.IMAGE_VERSION_PREFIX ) && !github.event.release.prerelease }}
4343 uses : macbre/push-to-ghcr@master
4444 with :
4545 context : ./${{ env.IMAGE_NAME }}
You can’t perform that action at this time.
0 commit comments