Skip to content

Commit 9f4ba76

Browse files
committed
Hotfix: fetch tags manually to fix CI (#1580)
* Fetch tags manually * fixup! Fetch tags manually
1 parent 83860b5 commit 9f4ba76

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/build-docker.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
. /etc/profile
5757
echo "/opt/view/bin" >> $GITHUB_PATH
5858
echo "CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}" >> $GITHUB_ENV
59-
# NOTE: checkout must occur *after* setting up environment for git tags to work
59+
# NOTE: checkout must occur *after* setting up environment to use the right Git version
6060
# NOTE: depth must be enough to include the previous tag
6161
- name: Check out Celeritas
6262
uses: actions/checkout@v4
@@ -66,6 +66,7 @@ jobs:
6666
- name: Configure Celeritas
6767
run: |
6868
git config --global --add safe.directory ${PWD}
69+
git fetch --tags
6970
ln -fs scripts/cmake-presets/ci-${{matrix.image}}.json CMakeUserPresets.json
7071
cmake --preset=${CMAKE_PRESET}
7172
- name: Build Celeritas

.github/workflows/build-spack.yml

+2
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ jobs:
145145
ccache -z
146146
- name: Configure Celeritas
147147
run: |
148+
# NOTE: tags have issues, see https://github.com/actions/checkout/issues/2041
149+
git fetch --tags
148150
ln -fs scripts/cmake-presets/ci-ubuntu-github.json CMakeUserPresets.json
149151
if [ "${{matrix.geant}}" == "11.0" ]; then
150152
# Test overriding of Geant4 environment variables

0 commit comments

Comments
 (0)