Skip to content

Commit b292066

Browse files
committed
Move get-ref-from-pr to actions repo for reuse
1 parent e613b94 commit b292066

2 files changed

Lines changed: 10 additions & 217 deletions

File tree

.github/scripts/get-refs-from-pr-body.js

Lines changed: 0 additions & 215 deletions
This file was deleted.

.github/workflows/build_external.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,23 @@ jobs:
2121
solana-ref: ${{ steps.set-git-refs.outputs.solana-ref }}
2222
starknet-ref: ${{ steps.set-git-refs.outputs.starknet-ref }}
2323
steps:
24-
- uses: actions/checkout@v4
24+
# Checkout the shared scripts from the smartcontractkit/.github repo.
25+
- name: Checkout shared .github scripts
26+
uses: actions/checkout@v4
2527
with:
28+
repository: smartcontractkit/.github
29+
# TODO: pin to a commit SHA once the get-refs-from-pr-body.js PR is merged into smartcontractkit/.github.
30+
ref: feature/get-ref-from-pr-body
2631
persist-credentials: false
32+
sparse-checkout: tools/scripts/get-refs-from-pr-body.js
33+
sparse-checkout-cone-mode: false
34+
path: shared-github
2735
- name: Get refs from PR body
2836
id: set-git-refs
2937
uses: actions/github-script@v7
3038
with:
3139
script: |
32-
const script = require('./.github/scripts/get-refs-from-pr-body.js')
40+
const script = require(`${process.env.GITHUB_WORKSPACE}/shared-github/tools/scripts/get-refs-from-pr-body.js`)
3341
await script({ github, context, core })
3442
3543
build-chainlink:

0 commit comments

Comments
 (0)