Skip to content

Commit 3e30af1

Browse files
committed
Fix the status embed workflow
1 parent edf130f commit 3e30af1

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

Diff for: .github/workflows/main.yml

+22
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,25 @@ 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+
pr_artifact:
27+
name: Produce Pull Request payload artifact
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- name: Prepare Pull Request Payload artifact
32+
id: prepare-artifact
33+
if: always() && github.event_name == 'pull_request'
34+
continue-on-error: true
35+
run: cat $GITHUB_EVENT_PATH | jq '.pull_request' > pull_request_payload.json
36+
37+
- name: Upload a Build Artifact
38+
if: always() && steps.prepare-artifact.outcome == 'success'
39+
continue-on-error: true
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: pull-request-payload
43+
path: pull_request_payload.json

Diff for: .github/workflows/status_embed.yml

+1-1
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'

Diff for: changes/300.internal.md

+1
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)