Skip to content

Commit 08fa270

Browse files
committed
feat: ensure gh CLI is installed in CI workflows until runner image is patched
1 parent 0f8de4c commit 08fa270

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ jobs:
3939
# Configure git user for commits made by the workflow
4040
- name: Configure git user (trigger actor)
4141
uses: ./.github/actions/config-git-user
42-
42+
43+
# fusion-gh-runner-fusion-framework's image doesn't ship gh (tracked with
44+
# infra); install it until the runner image is patched.
45+
- name: Ensure gh CLI is installed
46+
continue-on-error: true
47+
uses: ./.github/actions/ensure-gh-cli
48+
4349
# Install dependencies and setup Node.js environment
4450
- name: Setup node and install deps
4551
uses: ./.github/actions/node-setup
@@ -58,11 +64,6 @@ jobs:
5864
env:
5965
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
6066

61-
- name: Ensure gh CLI is installed
62-
if: steps.changesets.outputs.published == 'false' && steps.changesets.outputs['pr-number']
63-
continue-on-error: true
64-
uses: ./.github/actions/ensure-gh-cli
65-
6667
- name: convert Changeset PR to draft
6768
if: steps.changesets.outputs.published == 'false' && steps.changesets.outputs['pr-number']
6869
continue-on-error: true

.github/workflows/next.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ jobs:
6363
with:
6464
fetch-depth: 0
6565

66+
# fusion-gh-runner-fusion-framework's image doesn't ship gh (tracked with
67+
# infra); install it until the runner image is patched.
68+
- name: Ensure gh CLI is installed
69+
continue-on-error: true
70+
uses: ./.github/actions/ensure-gh-cli
71+
6672
- name: Setup node and install deps
6773
uses: ./.github/actions/node-setup
6874

@@ -77,11 +83,6 @@ jobs:
7783
env:
7884
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
7985

80-
- name: Ensure gh CLI is installed
81-
if: steps.changesets.outputs.published == 'false' && steps.changesets.outputs['pr-number']
82-
continue-on-error: true
83-
uses: ./.github/actions/ensure-gh-cli
84-
8586
- name: convert Changeset PR to draft
8687
if: steps.changesets.outputs.published == 'false' && steps.changesets.outputs['pr-number']
8788
continue-on-error: true

0 commit comments

Comments
 (0)