Skip to content

Commit 8429c87

Browse files
committed
fix(ci): ensure reusable workflows checkout code regardless
1 parent fb34ed1 commit 8429c87

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/record_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [opened, edited, closed]
66

77
jobs:
8-
build:
8+
record_pr:
99
runs-on: ubuntu-latest
1010

1111
steps:

.github/workflows/reusable_export_pr_details.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@ jobs:
4141
prAction: ${{ steps.prAction.outputs.prAction }}
4242
prIsMerged: ${{ steps.prIsMerged.outputs.prIsMerged }}
4343
steps:
44+
- name: Checkout repository # in case caller workflow doesn't checkout thus failing with file not found
45+
uses: actions/checkout@v3
4446
- name: "Download previously saved PR"
4547
uses: actions/github-script@v6
4648
# For security, we only download artifacts tied to the successful PR recording workflow
4749
with:
4850
github-token: ${{ secrets.token }}
4951
script: |
50-
const script = require('.github/scripts/download_pr_details.js')
52+
const script = require('.github/scripts/download_pr_artifact.js')
5153
await script({github, context, core})
5254
# NodeJS standard library doesn't provide ZIP capabilities; use system `unzip` command instead
5355
- name: "Unzip PR artifact"

0 commit comments

Comments
 (0)