Skip to content

Commit

Permalink
Fix github auth for compilation download
Browse files Browse the repository at this point in the history
  • Loading branch information
joernott committed Aug 22, 2024
1 parent 837124f commit 5953cc4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions prepare_shop/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,15 @@ runs:
- name: Fetch the compilation composer.json
if: ${{ inputs.compilation_url != '' }}
env:
enterprise_github_token: '${{ inputs.enterprise_github_token }}'
shell: bash
run: |
# prepare_shop: Fetch the compilation composer.json
${{ inputs.debug }}
mkdir -p source
curl -sSjkLo source/composer.json '${{ inputs.compilation_url }}'
curl -sSjkLo source/composer.json \
-H 'Authorization: token ${{ inputs.enterprise_github_token }}' \
-H 'Accept: application/vnd.github.v3.raw' \
'${{ inputs.compilation_url }}'
- name: Clone the shop (${{ inputs.git_shop_ref }})
if: ${{ inputs.compilation_url == '' && (inputs.github_event_name != 'pull_request' || ( github.repository != 'OXID-eSales/oxideshop_ce')) }}
Expand Down

0 comments on commit 5953cc4

Please sign in to comment.