File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments