File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 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 }}..."
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
6482
6583
6684
67-
You can’t perform that action at this time.
0 commit comments