mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-02-14 18:09:57 +00:00
Tag releases via PR
This commit is contained in:
25
.github/workflows/tag-release.yml
vendored
Normal file
25
.github/workflows/tag-release.yml
vendored
Normal 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 }}
|
||||
Reference in New Issue
Block a user