Skip to content

Commit 617ad47

Browse files
authored
build: Move scripts checkout (#32810)
* Add fetch-depth option to checkout action * Refactor workflow by removing redundant steps * Clarify checkout order in check-samples.yml * Added comment to clarify checkout order for dynver.
1 parent 2fce13e commit 617ad47

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/check-samples.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ jobs:
1919
name: Check Sample Projects
2020
runs-on: Akka-Default
2121
steps:
22+
- name: Checkout Global Scripts
23+
# This MUST be before the main checkout or else the dynver will not work
24+
uses: actions/checkout@v4
25+
with:
26+
repository: akka/github-actions-scripts
27+
path: scripts
28+
fetch-depth: 0
29+
30+
- name: Setup global resolver
31+
run: |
32+
chmod +x ./scripts/setup_global_resolver.sh
33+
./scripts/setup_global_resolver.sh
34+
2235
- name: Checkout
2336
# https://github.com/actions/checkout/releases
2437
# v4.1.1
@@ -32,17 +45,6 @@ jobs:
3245
git fetch origin pull/${{ github.event.pull_request.number }}/merge:scratch
3346
git checkout scratch
3447
35-
- name: Checkout Global Scripts
36-
uses: actions/checkout@v4
37-
with:
38-
repository: akka/github-actions-scripts
39-
path: scripts
40-
41-
- name: Setup global resolver
42-
run: |
43-
chmod +x ./scripts/setup_global_resolver.sh
44-
./scripts/setup_global_resolver.sh
45-
4648
- name: Cache Coursier cache
4749
# https://github.com/coursier/cache-action/releases
4850
# v6.4.5

0 commit comments

Comments
 (0)