Skip to content

Commit 12bde05

Browse files
committed
testing
1 parent 6d436cb commit 12bde05

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/process_chunk.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,23 @@ jobs:
2828
matrix: ${{ fromJson(inputs.chunk-data) }}
2929
steps:
3030

31+
- name: Get job-specific URL
32+
run: |
33+
echo "Fetching job URL for current matrix job..."
34+
JOB_URL=$(curl -s \
35+
-H "Accept: application/vnd.github+json" \
36+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
37+
"${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs" \
38+
| jq -r --arg JOB "${{ github.job }}" --argjson MATRIX "${{ toJson(matrix) }}" '
39+
.jobs[]
40+
| select(.name | startswith($JOB))
41+
| select(.name | contains($MATRIX.chunk))
42+
| .html_url
43+
')
44+
echo "Job URL: $JOB_URL"
45+
echo "JOB_URL=$JOB_URL" >> $GITHUB_ENV
46+
47+
3148
- name: Get job-specific URL
3249
run: |
3350
echo "Fetching job URL for ${{ github.job }}..."
@@ -38,6 +55,7 @@ jobs:
3855
| jq -r --arg JOB "${{ github.job }}" '.jobs[] | select(.name | startswith($JOB)) | .html_url')
3956
echo "Job URL: $JOB_URL"
4057
58+
4159
- name: Print env and file
4260
run: echo "Env=${{ matrix.env }} File=${{ matrix.file }}"
4361

@@ -64,4 +82,3 @@ jobs:
6482
6583
6684
67-

0 commit comments

Comments
 (0)