File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 30
30
repo_owner="rhunk"
31
31
repo_name="SnapEnhance"
32
32
workflow_name="beta.yml"
33
- pat="${{ secrets.SNAP_ENHANCE_WORKFLOW_ARTIFACT }}" # Replace SNAP_ENHANCE_WORKFLOW_ARTIFACT with your actual secret name
34
-
33
+ pat="${{ secrets.SNAP_ENHANCE_WORKFLOW_ARTIFACT }}"
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
+
35
39
artifact_url=$(curl -s -H "Authorization: Bearer $pat" \
36
40
"https://api.github.com/repos/${repo_owner}/${repo_name}/actions/workflows/${workflow_name}/runs?event=schedule&status=success&per_page=1" \
37
41
| jq -r '.workflow_runs[0].artifacts_url')
40
44
"$artifact_url" \
41
45
| jq -r '.artifacts[0].archive_download_url')
42
46
47
+ echo "Artifact URL: $artifact_url"
48
+ echo "Download URL: $download_url"
49
+
43
50
echo "download_url=$download_url" >> $GITHUB_ENV
44
51
shell : bash
45
52
74
81
uses : softprops/action-gh-release@v1
75
82
with :
76
83
files : snap-360-lspatched.apk
77
- tag_name : ${{ env.RELEASE_VERSION }}
84
+ tag_name : ${{ env.RELEASE_VERSION }}
You can’t perform that action at this time.
0 commit comments