use fromJSON for comparing to 'true'

pull/1118/head
Willy 2023-02-18 23:49:39 +01:00
parent 3ec91d81f0
commit d673e4e22e
No known key found for this signature in database
GPG Key ID: 02E60AE5D9208602
1 changed files with 2 additions and 3 deletions

View File

@ -445,8 +445,7 @@ jobs:
# all other release jobs should be based on this # all other release jobs should be based on this
release: release:
# only run release jobs on push to stable/unstable. # only run release jobs on push to stable/unstable.
# yes, we need to explicitly compare to 'true' here since it's a string if: ${{ success() && fromJSON(needs.data.outputs.is_release) }}
if: ${{ success() && needs.data.outputs.is_release == 'true' }}
needs: [ data, build, test-postman-sqlite, test-postman-mysql, test-postman-postgres, docker-build ] needs: [ data, build, test-postman-sqlite, test-postman-mysql, test-postman-postgres, docker-build ]
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
@ -474,7 +473,7 @@ jobs:
draft: true draft: true
generateReleaseNotes: true generateReleaseNotes: true
omitBodyDuringUpdate: true omitBodyDuringUpdate: true
prerelease: ${{ needs.data.outputs.is_prerelease == 'true' && 'true' || ''}} prerelease: ${{ fromJSON(needs.data.outputs.is_prerelease) && 'true' || 'false'}}
updateOnlyUnreleased: true updateOnlyUnreleased: true
- name: import images - name: import images
run: for file in images/*.tar; do docker load < $file; done run: for file in images/*.tar; do docker load < $file; done