Skip to content

Commit

Permalink
Proper checking for the presence of a secret
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb committed Apr 19, 2024
1 parent 5a0d092 commit 59db328
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,12 @@ jobs:
# Build and zip.
# ------------------------------------------------------------------------------
- name: Determine if COMPOSER_TOKEN was provided
run: echo "COMPOSER_TOKEN_AVAILABLE=${{ secrets.COMPOSER_TOKEN != '' }}" >> $GITHUB_ENV
run: |
if [ -z "${{ secrets.COMPOSER_TOKEN }}" ]; then
echo "COMPOSER_TOKEN_AVAILABLE=false" >> $GITHUB_ENV
else
echo "COMPOSER_TOKEN_AVAILABLE=true" >> $GITHUB_ENV
fi
- name: pup build
if: steps.s3_zip_exists.outcome != 'success' && env.COMPOSER_TOKEN_AVAILABLE == 'false'
Expand Down

0 comments on commit 59db328

Please sign in to comment.