File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 32
32
workflow_name="beta.yml"
33
33
pat="${{ secrets.SNAP_ENHANCE_WORKFLOW_ARTIFACT }}"
34
34
35
- echo "Token: $pat"
36
- echo "Repository: $repo_owner/$repo_name"
37
- echo "Workflow URL: https://api.github.com/repos/${repo_owner}/${repo_name}/actions/workflows/${workflow_name}/runs?event=schedule&status=success&per_page=1"
38
-
39
35
artifact_url=$(curl -s -H "Authorization: Bearer $pat" \
40
- "https://api.github.com/repos/${repo_owner}/${repo_name}/actions/workflows/${workflow_name}/runs?event=schedule& status=success&per_page=1" \
36
+ "https://api.github.com/repos/${repo_owner}/${repo_name}/actions/workflows/${workflow_name}/runs?status=success&per_page=1" \
41
37
| jq -r '.workflow_runs[0].artifacts_url')
42
38
43
39
download_url=$(curl -s -H "Authorization: Bearer $pat" \
Original file line number Diff line number Diff line change @@ -29,16 +29,19 @@ jobs:
29
29
repo_owner="rhunk"
30
30
repo_name="SnapEnhance"
31
31
workflow_name="beta.yml"
32
- pat="${{ secrets.SNAP_ENHANCE_WORKFLOW_ARTIFACT }}" # Replace SNAP_ENHANCE_WORKFLOW_ARTIFACT with your actual secret name
33
-
32
+ pat="${{ secrets.SNAP_ENHANCE_WORKFLOW_ARTIFACT }}"
33
+
34
34
artifact_url=$(curl -s -H "Authorization: Bearer $pat" \
35
- "https://api.github.com/repos/${repo_owner}/${repo_name}/actions/workflows/${workflow_name}/runs?event=schedule& status=success&per_page=1" \
35
+ "https://api.github.com/repos/${repo_owner}/${repo_name}/actions/workflows/${workflow_name}/runs?status=success&per_page=1" \
36
36
| jq -r '.workflow_runs[0].artifacts_url')
37
37
38
38
download_url=$(curl -s -H "Authorization: Bearer $pat" \
39
39
"$artifact_url" \
40
40
| jq -r '.artifacts[0].archive_download_url')
41
41
42
+ echo "Artifact URL: $artifact_url"
43
+ echo "Download URL: $download_url"
44
+
42
45
echo "download_url=$download_url" >> $GITHUB_ENV
43
46
shell : bash
44
47
Original file line number Diff line number Diff line change 1
1
# A File to do dirty stuff - push in this file to trigger action
2
2
Snap 12.68.0.23 Beta & SnapEnhance CI Build ffd42de
3
3
4
- Add a dot here:
4
+ Add a dot here:
You can’t perform that action at this time.
0 commit comments