CI: Add Composer oauth token for github.com
This commit is contained in:
parent
1aacce829f
commit
9d08d4247a
2 changed files with 11 additions and 1 deletions
8
.github/actions/install/action.yml
vendored
8
.github/actions/install/action.yml
vendored
|
@ -29,7 +29,13 @@ runs:
|
|||
PICO_VERSION="$(php -r 'require("./lib/Pico.php"); echo Pico::VERSION;')"
|
||||
echo "PICO_VERSION=$PICO_VERSION" | tee -a "$GITHUB_ENV"
|
||||
|
||||
- name: Setup Composer
|
||||
- name: Setup Composer auth
|
||||
shell: bash
|
||||
working-directory: ${{ inputs.path }}
|
||||
run: |
|
||||
composer config --global github-oauth.github.com "${{ github.token }}"
|
||||
|
||||
- name: Setup Composer root version
|
||||
if: ${{ github.ref_type == 'branch' }}
|
||||
shell: bash
|
||||
working-directory: ${{ inputs.path }}
|
||||
|
|
4
.github/workflows/deploy-release.yml
vendored
4
.github/workflows/deploy-release.yml
vendored
|
@ -204,6 +204,10 @@ jobs:
|
|||
php-version: ${{ env.PHP_VERSION }}
|
||||
tools: composer
|
||||
|
||||
- name: Setup Composer auth
|
||||
run: |
|
||||
composer config --global github-oauth.github.com "${{ github.token }}"
|
||||
|
||||
- name: Get Composer cache directory
|
||||
run: |
|
||||
COMPOSER_CACHE_DIR="$(composer config --global cache-dir)"
|
||||
|
|
Loading…
Reference in a new issue