Skip to content

Commit e444181

Browse files
committed
refactor: update checkout paths in workflow tests and remove redundant checkout step in updater action
1 parent 549bc0a commit e444181

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/workflow-tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18+
with:
19+
path: gh-workflow-tests-checkout
1820

1921
- name: Run updater action
2022
id: updater
21-
uses: ./updater
23+
uses: gh-workflow-tests-checkout/updater
2224
with:
2325
path: updater/tests/sentry-cli.properties
2426
name: WORKFLOW-TEST-DEPENDENCY-DO-NOT-MERGE
@@ -78,10 +80,12 @@ jobs:
7880
runs-on: ubuntu-latest
7981
steps:
8082
- uses: actions/checkout@v4
83+
with:
84+
path: gh-workflow-tests-checkout
8185

8286
- name: Run updater action with target-branch
8387
id: updater
84-
uses: ./updater
88+
uses: gh-workflow-tests-checkout/updater
8589
with:
8690
path: updater/tests/sentry-cli.properties
8791
name: TARGET-BRANCH-TEST-DO-NOT-MERGE
@@ -142,10 +146,12 @@ jobs:
142146
runs-on: macos-latest
143147
steps:
144148
- uses: actions/checkout@v4
149+
with:
150+
path: gh-workflow-tests-checkout
145151

146152
- name: Run updater action
147153
id: updater
148-
uses: ./updater
154+
uses: gh-workflow-tests-checkout/updater
149155
with:
150156
path: updater/tests/workflow-args.sh
151157
name: Workflow args test script

updater/action.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ outputs:
5757
runs:
5858
using: 'composite'
5959
steps:
60-
- name: Checkout repository
61-
uses: actions/checkout@v4
62-
with:
63-
token: ${{ inputs.api-token }}
64-
6560
- name: Cancel Previous Runs
6661
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # Tag: 0.12.1
6762
with:

0 commit comments

Comments
 (0)