Skip to content

Commit 713c362

Browse files
authored
fix: can't exclude repo checkout from matrix (#306)
Tried to factor out the repo checkout to its own job so that it didn't have to be run multiple times, but that didn't work.
1 parent b3caf3e commit 713c362

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/release.yml

+5-11
Original file line numberDiff line numberDiff line change
@@ -71,25 +71,19 @@ jobs:
7171
exit 1
7272
fi
7373
74-
checkout:
75-
name: Check Out Repo
76-
runs-on: ubuntu-latest
77-
needs: set_variables
78-
steps:
79-
- name: Check Out Repo
80-
uses: actions/checkout@v4
81-
with:
82-
ref: ${{ needs.set_variables.outputs.full_tag }}
83-
8474
build-and-publish-container-image:
8575
name: Build and publish container image
86-
needs: [checkout, set_variables]
76+
needs: set_variables
8777
runs-on: ubuntu-latest
8878
if: needs.set_variables.outputs.valid_semver == 'true'
8979
strategy:
9080
matrix:
9181
service: ${{ fromJson(needs.set_variables.outputs.service_matrix) }}
9282
steps:
83+
- name: Check Out Repo
84+
uses: actions/checkout@v4
85+
with:
86+
ref: ${{ needs.set_variables.outputs.full_tag }}
9387
- name: Deploy Service
9488
run: |
9589
echo "Deploying service: ${{ matrix.service }}"

0 commit comments

Comments
 (0)