File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919 - name : Download and extract build
2020 run : |
21- SOURCE_REPO="${{ github.event.client_payload.source_repo }}"
22- RELEASE_TAG="${{ github.event.client_payload.release_tag }}"
23- ASSET_NAME="${{ github.event.client_payload.asset_name }}"
24- ASSET_URL="https://github.com/${SOURCE_REPO}/releases/download/${RELEASE_TAG}/${ASSET_NAME}"
25- curl -L -o build.zip "${ASSET_URL}"
21+ ARTIFACT_URL="${{ github.event.client_payload.artifact_url }}"
22+ TOKEN="${{ github.event.client_payload.token }}"
23+ curl -L -H "Authorization: token ${TOKEN}" -o build.zip "${ARTIFACT_URL}"
2624 unzip build.zip -d temp-build
2725
2826 - name : Clear and copy to subfolder
@@ -36,13 +34,12 @@ jobs:
3634 run : |
3735 SUBFOLDER="${{ github.event.client_payload.subfolder }}"
3836 SOURCE_REPO="${{ github.event.client_payload.source_repo }}"
39- RELEASE_TAG="${{ github.event.client_payload.release_tag }}"
4037 git config --global user.name 'github-actions[bot]'
4138 git config --global user.email 'github-actions[bot]@users.noreply.github.com'
4239 git add "${SUBFOLDER}"
4340 if git diff --staged --quiet; then
4441 echo "No changes to commit"
4542 else
46- git commit -m "Deploy ${SOURCE_REPO} build to ${SUBFOLDER} from release ${RELEASE_TAG} "
43+ git commit -m "Deploy ${SOURCE_REPO} build to ${SUBFOLDER}"
4744 git push origin main
4845 fi
You can’t perform that action at this time.
0 commit comments