Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
fixes for nm-get-docker-tag (#344)
Browse files Browse the repository at this point in the history
Add missing quote in bash
use `==` instead of `=` in `if` statements

---------

Co-authored-by: dhuangnm <[email protected]>
  • Loading branch information
derekk-nm and dhuangnm authored Jun 28, 2024
1 parent f96cf9d commit b42a940
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/nm-get-docker-tags/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ runs:
steps:
- id: tags
run: |
BUILD_VERSION=`echo "${{ inputs.wheel }} | cut -d'-' -f2`
if [[ "${{ inputs.wf_category }}" = "RELEASE" ]]; then
BUILD_VERSION=`echo "${{ inputs.wheel }}" | cut -d'-' -f2`
if [[ "${{ inputs.wf_category }}" == "RELEASE" ]]; then
TAG="v${build_version}"
EXTRA_TAG=latest
else
TAG=`echo "${build_version}" | cut -d'.' -f4`
EXTRA_TAG=nightly
fi
if [[ "${{ inputs.wheel }} = 'latest' ]]; then
BUILD_VERSION='latest'
if [[ "${{ inputs.wheel }}" == "latest" ]]; then
BUILD_VERSION="latest"
fi
echo "tag=${TAG}" >> $GITHUB_OUTPUT
echo "extra_tag=${EXTRA_TAG}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit b42a940

Please sign in to comment.