Pin ref: main on the sibling checkouts
Without an explicit ref, checkout asks each instrument repo for this
repository's triggering commit sha.
1 changed file+9−2
.github/workflows/deploy.ymlmodified+9−2View file
@@ -7,8 +7,9 @@ name: Deploy to Pages
77 # the vault layout inside the workspace: this repository is checked out
88 # at proof-of-concept/midiboot and each instrument repo at
99 # simulated_instruments/<repo>, which is where the relative imports and
10-# vite's fs.allow expect them. The instrument checkouts take each repo's
11-# default branch, so the deployed site tracks the siblings as of the
10+# vite's fs.allow expect them. The instrument checkouts pin ref: main
11+# (without it, checkout would ask the sibling for this repository's
12+# commit sha), so the deployed site tracks the siblings' main as of the
1213 # time this workflow runs; a push to a sibling does not retrigger it.
1314 #
1415 # Three notes on the vault:
@@ -47,31 +48,37 @@ jobs:
4748 - uses: actions/checkout@v4
4849 with:
4950 repository: simulated_instruments/bass
51+ ref: main
5052 path: simulated_instruments/bass
5153
5254 - uses: actions/checkout@v4
5355 with:
5456 repository: simulated_instruments/woodblock
57+ ref: main
5558 path: simulated_instruments/woodblock
5659
5760 - uses: actions/checkout@v4
5861 with:
5962 repository: simulated_instruments/recorder
63+ ref: main
6064 path: simulated_instruments/recorder
6165
6266 - uses: actions/checkout@v4
6367 with:
6468 repository: simulated_instruments/cymbal2
69+ ref: main
6570 path: simulated_instruments/cymbal2
6671
6772 - uses: actions/checkout@v4
6873 with:
6974 repository: simulated_instruments/triangle
75+ ref: main
7076 path: simulated_instruments/triangle
7177
7278 - uses: actions/checkout@v4
7379 with:
7480 repository: simulated_instruments/maraca
81+ ref: main
7582 path: simulated_instruments/maraca
7683
7784 - uses: actions/setup-node@v4