We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fe5dc5 commit 5ff98a7Copy full SHA for 5ff98a7
1 file changed
.github/workflows/build-and-test.yml
@@ -19,6 +19,8 @@ jobs:
19
permissions:
20
contents: write
21
pull-requests: write
22
+ outputs:
23
+ committed_sha: ${{ steps.commit_dist.outputs.commit_sha }}
24
steps:
25
- name: Checkout PR head
26
uses: actions/checkout@v4
@@ -47,6 +49,7 @@ jobs:
47
49
48
50
- name: Commit build artifacts (same-repo PRs only)
51
if: github.event.pull_request.head.repo.full_name == github.repository
52
+ id: commit_dist
53
uses: EndBug/add-and-commit@v9
54
with:
55
add: "."
@@ -212,6 +215,7 @@ jobs:
212
215
213
216
token: ${{ secrets.GITHUB_TOKEN }}
214
217
status: ${{ steps.status.outputs.status }}
218
+ sha: ${{ needs.build-dist.outputs.committed_sha || github.event.pull_request.head.sha }}
219
context: "all-tests-passed"
220
description: "Aggregation of all tests"
221
0 commit comments