ci: fix GHA workflow boolean syntax
Someone forgot some brackets around the boolean expressions
@@ -16,7 +16,7 @@ on: # yamllint disable-line rule:truthy
jobs:
publish:
name: publish
- if: github.repository == "determined-ai/determined"
+ if: ${{ github.repository == "determined-ai/determined" }}
runs-on: ubuntu-latest
permissions:
contents: write
@@ -30,7 +30,7 @@ jobs:
#API=repos/{{ github.repository }}/releases/latest
#gh api $API -q -q '"rel_id=" + (.id|tostring)' >> $GITHUB_ENV
printf 'rel_id={{ github.event.release.id }}\n' >> $GITHUB_ENV
- - if: github.event_name == "workflow-dispatch"
+ - if: ${{ github.event_name == "workflow-dispatch" }}
run: |
API=repos/{{ github.repository }}/releases/latest/{{ inputs.tag }}
gh api $API -q -q '"rel_id=" + (.id|tostring)' >> $GITHUB_ENV
