Skip to content

Commit 4be2da4

Browse files
committed
Specify job name/context explicitly
- there seems to be no way to access the job name
1 parent 465ad3c commit 4be2da4

6 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/actions/report-fork-status/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ inputs:
55
pr_ref:
66
description: 'SHA of the fork PR head commit'
77
required: true
8+
name:
9+
description: 'Status context name (job name)'
10+
required: true
811

912
runs:
1013
using: composite
@@ -20,8 +23,9 @@ runs:
2023
skipped) exit 0 ;;
2124
*) state="failure" ;;
2225
esac
26+
echo "report-fork-status: name/context='${{ inputs.name }}' pr_ref=${{ inputs.pr_ref }} state=$state"
2327
gh api --method POST "repos/${{ github.repository }}/statuses/${{ inputs.pr_ref }}" \
2428
-f state="$state" \
25-
-f context="${{ job.name }}" \
29+
-f context="${{ inputs.name }}" \
2630
-f target_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
2731
-f description="${{ job.status }}"

.github/workflows/alioss-integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,4 @@ jobs:
6161
uses: ./.github/actions/report-fork-status
6262
with:
6363
pr_ref: ${{ inputs.pr_ref }}
64+
name: Alioss General Integration Tests

.github/workflows/azurebs-integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,4 @@ jobs:
5959
uses: ./.github/actions/report-fork-status
6060
with:
6161
pr_ref: ${{ inputs.pr_ref }}
62+
name: AzureCloud Environment Integration Tests

.github/workflows/dav-integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,4 @@ jobs:
4848
uses: ./.github/actions/report-fork-status
4949
with:
5050
pr_ref: ${{ inputs.pr_ref }}
51+
name: DAV Integration Tests

.github/workflows/gcs-integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
uses: ./.github/actions/report-fork-status
6161
with:
6262
pr_ref: ${{ inputs.pr_ref }}
63+
name: GCS Integation Fast Tests
6364

6465
gcs-integration-all-tests:
6566
name: GCS Integation All Tests
@@ -103,3 +104,4 @@ jobs:
103104
uses: ./.github/actions/report-fork-status
104105
with:
105106
pr_ref: ${{ inputs.pr_ref }}
107+
name: GCS Integation All Tests

.github/workflows/s3-integration.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ jobs:
9494
uses: ./.github/actions/report-fork-status
9595
with:
9696
pr_ref: ${{ inputs.pr_ref }}
97+
name: AWS S3 US Integration
9798

9899
aws-s3-regional-integration:
99100
name: AWS S3 ${{ matrix.name }} Integration
@@ -169,6 +170,7 @@ jobs:
169170
uses: ./.github/actions/report-fork-status
170171
with:
171172
pr_ref: ${{ inputs.pr_ref }}
173+
name: AWS S3 ${{ matrix.name }} Integration
172174

173175
s3-compatible-integration:
174176
name: S3 Compatible Integration
@@ -204,4 +206,5 @@ jobs:
204206
uses: ./.github/actions/report-fork-status
205207
with:
206208
pr_ref: ${{ inputs.pr_ref }}
209+
name: S3 Compatible Integration
207210

0 commit comments

Comments
 (0)