Skip to content

Commit 5fb6da9

Browse files
authored
Update artifact download and commit message in workflow
1 parent 31ad08e commit 5fb6da9

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/receive-beta-build.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ jobs:
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

0 commit comments

Comments
 (0)