Skip to content

Commit

Permalink
It seems booleans are not supported
Browse files Browse the repository at this point in the history
Signed-off-by: Charalampos Mainas <[email protected]>
  • Loading branch information
cmainas committed Oct 23, 2024
1 parent 9781af0 commit 62555ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 62555ee

Please sign in to comment.