Skip to content

Commit

Permalink
ci: simplify expression in GitHub Actions (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan committed Feb 18, 2024
1 parent ea1232b commit 8593d90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -115,7 +115,7 @@ jobs:
- run: env | sort
- env:
PDM_PUBLISH_PASSWORD: ${{ secrets.PDM_PUBLISH_PASSWORD }}
PDM_PUBLISH_USERNAME: ${{ vars.PDM_PUBLISH_USERNAME != '' && vars.PDM_PUBLISH_USERNAME || '__token__' }}
PDM_PUBLISH_USERNAME: ${{ vars.PDM_PUBLISH_USERNAME || '__token__' }}
run: make publish
pages:
needs: release-publish
Expand Down
Expand Up @@ -126,7 +126,7 @@ jobs:
- run: env | sort
- env:
PDM_PUBLISH_PASSWORD: {{ '${{ secrets.PDM_PUBLISH_PASSWORD }}' }}
PDM_PUBLISH_USERNAME: {{ '${{ vars.PDM_PUBLISH_USERNAME != \'\' && vars.PDM_PUBLISH_USERNAME || \'__token__\' }}' }}
PDM_PUBLISH_USERNAME: {{ '${{ vars.PDM_PUBLISH_USERNAME || \'__token__\' }}' }}
run: make publish
pages:
needs: release-publish
Expand Down

0 comments on commit 8593d90

Please sign in to comment.