Tag releases via PR

This commit is contained in:
Ciprian Hacman
2023-09-21 05:18:19 +03:00
parent 95829b8991
commit aec1c74025
3 changed files with 58 additions and 0 deletions

25
.github/workflows/tag-release.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: tag-release
on:
push:
branches:
- master
paths:
- version.txt
jobs:
tag:
if: ${{ github.repository == 'kubernetes/node-problem-detector' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: /usr/bin/git config --global user.email actions@github.com
- run: /usr/bin/git config --global user.name 'GitHub Actions Release Tagger'
- run: hack/tag-release.sh
id: tag_release
outputs:
release_tag: ${{ steps.tag_release.outputs.release_tag }}