Skip to content

Commit 39eab25

Browse files
authored
fix: Checkout GitHub tools using ref instead of main branch in two more actions (#184)
1 parent c350664 commit 39eab25

File tree

2 files changed

+24
-11
lines changed

2 files changed

+24
-11
lines changed

.github/actions/flaky-test-report/action.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,24 @@ inputs:
1414
slack-webhook-flaky-tests:
1515
description: 'Slack webhook URL for flaky test reports'
1616
required: true
17+
github-tools-repository:
18+
description: 'The GitHub repository containing the GitHub tools. Defaults to the GitHub tools action repositor, and usually does not need to be changed.'
19+
required: false
20+
default: ${{ github.action_repository }}
21+
github-tools-ref:
22+
description: 'The SHA of the action to use. Defaults to the current action ref, and usually does not need to be changed.'
23+
required: false
24+
default: ${{ github.action_ref }}
1725

1826
runs:
1927
using: composite
2028
steps:
21-
- name: Checkout github-tools repository
29+
- name: Checkout GitHub tools repository
2230
uses: actions/checkout@v6
2331
with:
24-
repository: MetaMask/github-tools
25-
path: github-tools
32+
repository: ${{ inputs.github-tools-repository }}
33+
ref: ${{ inputs.github-tools-ref }}
34+
path: ./github-tools
2635

2736
- name: Set up Node.js
2837
uses: actions/setup-node@v6

.github/actions/update-release-changelog/action.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ inputs:
1616
required: false
1717
default: 'null'
1818
description: 'Previous release version reference (branch/tag/SHA). Use "null" for hotfixes.'
19-
github-tools-version:
20-
required: false
21-
default: 'main'
22-
description: 'Version of github-tools to use (branch, tag, or SHA).'
2319
github-token:
2420
required: true
2521
description: 'GitHub token with write access to the invoking repository and read access to planning resources.'
22+
github-tools-repository:
23+
description: 'The GitHub repository containing the GitHub tools. Defaults to the GitHub tools action repositor, and usually does not need to be changed.'
24+
required: false
25+
default: ${{ github.action_repository }}
26+
github-tools-ref:
27+
description: 'The SHA of the action to use. Defaults to the current action ref, and usually does not need to be changed.'
28+
required: false
29+
default: ${{ github.action_ref }}
2630

2731
runs:
2832
using: composite
@@ -36,12 +40,12 @@ runs:
3640
token: ${{ inputs.github-token }}
3741

3842
# Step 2: Checkout github-tools repository
39-
- name: Checkout github-tools repository
43+
- name: Checkout GitHub tools repository
4044
uses: actions/checkout@v6
4145
with:
42-
repository: MetaMask/github-tools
43-
ref: ${{ inputs.github-tools-version }}
44-
path: github-tools
46+
repository: ${{ inputs.github-tools-repository }}
47+
ref: ${{ inputs.github-tools-ref }}
48+
path: ./github-tools
4549

4650
# Step 3: Setup environment from github-tools
4751
- name: Checkout and setup environment

0 commit comments

Comments
 (0)