Skip to content

Commit

Permalink
Bring back COMPOSER_TOKEN check
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb committed Apr 19, 2024
1 parent 100c458 commit 472241a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,23 +124,23 @@ jobs:
# ------------------------------------------------------------------------------
# Build and zip.
# ------------------------------------------------------------------------------
# - name: Determine if COMPOSER_TOKEN was provided
# run: |
# if [ -z "${{ secrets.COMPOSER_TOKEN }}" ]; then
# echo "COMPOSER_TOKEN_AVAILABLE=false" >> $GITHUB_ENV
# else
# echo "COMPOSER_TOKEN_AVAILABLE=true" >> $GITHUB_ENV
# fi
- name: Determine if COMPOSER_TOKEN was provided
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'
run: composer -- pup build

# - name: pup build with composer auth
# if: steps.s3_zip_exists.outcome != 'success' && env.COMPOSER_TOKEN_AVAILABLE == 'true'
# env:
# COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.COMPOSER_TOKEN }}"}}'
# run: composer -- pup build
- name: pup build with composer auth
if: steps.s3_zip_exists.outcome != 'success' && env.COMPOSER_TOKEN_AVAILABLE == 'true'
env:
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.COMPOSER_TOKEN }}"}}'
run: composer -- pup build

- name: pup check
if: steps.s3_zip_exists.outcome != 'success' && inputs.production && inputs.check
Expand Down

0 comments on commit 472241a

Please sign in to comment.