diff --git a/.github/workflows/build-trigger.yml b/.github/workflows/build-trigger.yml index ec50d71..ce36e66 100644 --- a/.github/workflows/build-trigger.yml +++ b/.github/workflows/build-trigger.yml @@ -58,4 +58,4 @@ jobs: runner: '["gcc", "dind", "2204"]' runner-archs: '["amd64", "arm64"]' dockerfiles: ${{ toJSON(fromJSON(needs.get-changed-files.outputs.dockerfile_files || '[]')) }} - version-tag: ${{ needs.get-changed-files.outputs.version }} + version-tag: ${{ needs.get-changed-files.outputs.version ? 'true' : 'false' }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ec3e03d..b5e0165 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,8 +19,8 @@ on: type: string default: 'harbor.nbfc.io' version-tag: - type: boolean - default: false + type: string + default: 'false' secrets: GIT_CLONE_PAT: required: false @@ -143,7 +143,7 @@ jobs: - name: Set Docker tag based on branch, PR or version id: tag run: | - if [[ ${{ inputs.registry }} == true ]]; then + if [[ "${{ inputs.version-tag }}" == "true" ]]; then echo "Version change detected. Using version: $( cat VERSION )." echo "TAG=$( cat VERSION ) " >> $GITHUB_ENV elif [[ "${GITHUB_REF##*/}" == "main" ]]; then