Merge pull request #1233 from theHamsta/dont-repeat-update

ci: only create a header update PR if tag does not yet exist
This commit is contained in:
Andreas Süßenbach 2022-03-08 15:14:58 +01:00 committed by GitHub
commit 5f649a999b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,15 @@ jobs:
git config user.email "noreply@github.com"
git add Vulkan-Headers vulkan
rm -rf build
git commit -m "Update Vulkan-Headers to $VK_HEADER_GIT_TAG" || echo 'No commit necessary!'
git fetch --all --tags
if [ -z $(git tag | grep $VK_HEADER_GIT_TAG) ]
then
echo "Creating commit for new tag: $VK_HEADER_GIT_TAG"
git commit -m "Update Vulkan-Headers to $VK_HEADER_GIT_TAG" || echo 'No commit necessary!'
else
echo "Tag already exists: $VK_HEADER_GIT_TAG"
fi
git stash
git clean -xf
- name: Create Pull Request