Skip to content

Commit 5375f3d

Browse files
committed
Improvement: Throw error message if no git version TAG is found, linking to possible solution
1 parent f0cd84f commit 5375f3d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/check_doxygen.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,21 @@ jobs:
4242
repository: ${{ github.event.pull_request.head.repo.full_name }}
4343
ref: ${{ github.event.pull_request.head.ref }}
4444
fetch-depth: 0
45+
fetch-tags: true
4546
- name: disable ownership checks
4647
run: git config --global --add safe.directory '*'
4748
- name: init submodules
4849
run: git submodule init
4950
- name: update submodules
5051
run: git submodule update
52+
- name: Check whether a version tag is found and throw error message otherwise.
53+
run: |
54+
if ! [ -n "$(git tag --list 'v[0-9]*.[0-9]*.[0-9]*')" ]; then
55+
echo "ERROR: No version TAG found! A likely explanation is that the PR was created" \
56+
"from a git fork missing the associated tags. If so, here is how to fix it:" \
57+
"https://github.com/DLR-AMR/t8code/wiki/Contribution-workflow#failing-version-tags-in-pr-tests"
58+
exit 1
59+
fi
5160
- name: Install LaTeX dependencies
5261
run: |
5362
sudo apt-get update

0 commit comments

Comments
 (0)