fix(ci): filter out publications of Vulkan SC on update

The publication of Vulkan SC (https://www.khronos.org/news/press/khronos-releases-vulkan-safety-critical-1.0-specification-to-deliver-safety-critical-graphics-compute)
confused the update job since it was the most recent tag.

Preliminary solution: only accept tags that match `v1\.`.
This commit is contained in:
Stephan Seitz 2022-03-02 10:28:20 +01:00
parent 7638a1ec6c
commit 86b93be4e6

View File

@ -24,7 +24,8 @@ jobs:
run: | run: |
git submodule update --init --recursive git submodule update --init --recursive
cd Vulkan-Headers cd Vulkan-Headers
VK_HEADER_GIT_TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) VK_HEADER_GIT_TAG=$(git describe --tags $(git rev-list --tags | grep 'v\d\.' | head -n1))
echo "New revision of Vulkan-Headers: $VK_HEADER_GIT_TAG"
git checkout $VK_HEADER_GIT_TAG git checkout $VK_HEADER_GIT_TAG
echo "VK_HEADER_GIT_TAG=$VK_HEADER_GIT_TAG" >> $GITHUB_ENV echo "VK_HEADER_GIT_TAG=$VK_HEADER_GIT_TAG" >> $GITHUB_ENV