2021-09-21 17:40:35 +00:00
|
|
|
name: Set Version Tag
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-01-20 17:51:43 +00:00
|
|
|
branches: ["main"]
|
2021-09-21 17:40:35 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
set-version-tag:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-09-28 14:39:48 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-01-19 07:11:46 +00:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-09-21 17:40:35 +00:00
|
|
|
|
|
|
|
- name: Update Submodules
|
|
|
|
run: |
|
|
|
|
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?"
|