Skip to content

Commit

Permalink
Fixes #955: Directly use github.event.inputs.canPushLatestTag to set …
Browse files Browse the repository at this point in the history
…CAN_PUSH_LATEST

(cherry picked from commit 881d413)
  • Loading branch information
ganeshmurthy committed Feb 14, 2023
1 parent 8f06b13 commit 361f52b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/image-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ jobs:
done
env:
DOCKER_TAG: '${{github.event.inputs.dockerTag}}'
CAN_PUSH_LATEST: '${{github.event.inputs.canPushLatestTag}}'
- uses: actions/checkout@v3
- run: |
# build, run tests and if all worked publish a custom image
export PROJECT_TAG="${DOCKER_TAG}"
# Use {GITHUB_SHA::8} for shorter SHA
export VERSION="${GITHUB_SHA}"
if [ "$CAN_PUSH_LATEST" == "true" ]; then
CAN_PUSH_LATEST='${{github.event.inputs.canPushLatestTag}}'
if [ "${CAN_PUSH_LATEST}" == "true" ]; then
echo 'image-manual.yml setting PUSH_LATEST=true, will push :latest tag'
export PUSH_LATEST=true
else
Expand Down

0 comments on commit 361f52b

Please sign in to comment.