This commit is contained in:
Ronald A. Richardson
2023-08-02 18:21:34 +08:00
parent 00b49a7c04
commit 475c03c077
2 changed files with 10 additions and 8 deletions

View File

@@ -10,7 +10,6 @@ concurrency:
env:
PROJECT: ${{ secrets.PROJECT }}
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets._GITHUB_AUTH_TOKEN }}"}}'
jobs:
build_service:
@@ -49,7 +48,9 @@ jobs:
- name: Prepare Composer Auth Secret
run: |
if [[ -n "${{ secrets._GITHUB_AUTH_TOKEN }}" ]]; then
echo '${{ env.COMPOSER_AUTH }}' > composer-auth.json
echo '{"github-oauth": {"github.com": "'${{ secrets._GITHUB_AUTH_TOKEN }}'"}}' > composer-auth.json
else
echo '{}' > composer-auth.json
fi
- name: Build and Release