Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .github/workflows/magento-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
required: true
GH_TOKEN:
required: true
COMPOSER_AUTH:
required: false

jobs:
build_magento_package:
Expand All @@ -23,15 +25,9 @@ jobs:
steps:
- name: Setup SSH Key
run: mkdir -p ~/.ssh && chmod 0700 ~/.ssh && echo "${{ secrets.SSH }}" > ~/.ssh/id_ed25519 && chmod 600 ~/.ssh/id_ed25519

- name: Setup Composer GitHub token
run: mkdir -p $HOME/.composer && echo '${{ secrets.COMPOSER_AUTH }}' > $HOME/.composer/auth.json
- name: Composer config
env:
COMPOSER_AUTH: |
{
"github-oauth": {
"github.com": "${{ secrets.GH_TOKEN }}"
}
}
run: |
composer config --global http-basic.repo.magento.com ${{ secrets.REPO_MAGENTO_COM_USER }} ${{ secrets.REPO_MAGENTO_COM_PASSWORD }}
composer config --global repositories.magento composer https://repo.magento.com
Expand Down
1 change: 1 addition & 0 deletions workflow-templates/magento-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
REPO_MAGENTO_COM_PASSWORD: ${{ secrets.REPO_MAGENTO_COM_PASSWORD }}
SSH: ${{ secrets.SSH }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}

phpcs:
uses: AssetMarketingServicesInc/.github/.github/workflows/phpcs.yml@master
Expand Down