Skip to content

Commit 0b5d002

Browse files
committed
Fix the status embed workflow
1 parent edf130f commit 0b5d002

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,22 @@ jobs:
1919

2020
unit-tests:
2121
uses: ./.github/workflows/unit-tests.yml
22+
23+
# Produce a pull request payload artifact with various data about the
24+
# pull-request event (such as the PR number, title, author, ...).
25+
# This data is then be picked up by status-embed.yml action.
26+
artifact:
27+
steps:
28+
- name: Prepare Pull Request Payload artifact
29+
id: prepare-artifact
30+
if: always() && github.event_name == 'pull_request'
31+
continue-on-error: true
32+
run: cat $GITHUB_EVENT_PATH | jq '.pull_request' > pull_request_payload.json
33+
34+
- name: Upload a Build Artifact
35+
if: always() && steps.prepare-artifact.outcome == 'success'
36+
continue-on-error: true
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: pull-request-payload
40+
path: pull_request_payload.json

.github/workflows/status_embed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
# A workflow_run event does not contain all the information
2222
# we need for a PR embed. That's why we upload an artifact
23-
# with that information in the Lint workflow.
23+
# with that information in the CI workflow.
2424
- name: Get Pull Request Information
2525
id: pr_info
2626
if: github.event.workflow_run.event == 'pull_request'

changes/300.internal.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
- Trigger and run lint and unit-tests workflows form a single main CI workflow.
44
- Only send status embed after the main CI workflow finishes (not for both unit-tests and validation)
55
- Use `--output-format=github` for `ruff check` in the validation workflow
6+
- Fix the status-embed workflow

0 commit comments

Comments
 (0)