mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-21 11:50:04 +00:00
ci: set tag for Vulkan-Headers if non-existing
This commit is contained in:
parent
8be8c94eb5
commit
9f6892513d
28
.github/workflows/set-version-tag.yml
vendored
Normal file
28
.github/workflows/set-version-tag.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
name: Set Version Tag
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["master"]
|
||||
|
||||
jobs:
|
||||
set-version-tag:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Update Submodules
|
||||
run: |
|
||||
git submodule update --init --recursive
|
||||
cd Vulkan-Headers
|
||||
VK_HEADER_GIT_TAG=$(git tag --points-at HEAD | head -n1)
|
||||
git checkout $VK_HEADER_GIT_TAG
|
||||
echo "VK_HEADER_GIT_TAG=$VK_HEADER_GIT_TAG" >> $GITHUB_ENV
|
||||
|
||||
- name: Set Tag
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
|
||||
git tag $VK_HEADER_GIT_TAG || echo "Failed to set tag. Already existing?"
|
||||
git push -u origin $VK_HEADER_GIT_TAG || echo "Failed to push tag. Already existing?"
|
4
.github/workflows/update-header-pr.yml
vendored
4
.github/workflows/update-header-pr.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: CI Ubuntu
|
||||
name: Update Vulkan-Headers PR
|
||||
|
||||
on:
|
||||
schedule:
|
||||
@ -56,4 +56,4 @@ jobs:
|
||||
branch: update-vulkan-headers-pr
|
||||
base: ${{ github.head_ref }}
|
||||
body: |
|
||||
Please close and open this PR to trigger the CI!
|
||||
Please close and reopen this PR to trigger the CI!
|
||||
|
Loading…
Reference in New Issue
Block a user