From 86b93be4e68f1988dae4ee15dbb5bb7b4eff206d Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Wed, 2 Mar 2022 10:28:20 +0100 Subject: [PATCH] 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\.`. --- .github/workflows/update-header-pr.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-header-pr.yml b/.github/workflows/update-header-pr.yml index dc63954..a0b942e 100644 --- a/.github/workflows/update-header-pr.yml +++ b/.github/workflows/update-header-pr.yml @@ -24,7 +24,8 @@ jobs: run: | git submodule update --init --recursive 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 echo "VK_HEADER_GIT_TAG=$VK_HEADER_GIT_TAG" >> $GITHUB_ENV