Merge pull request #1064 from wangzhen127/release-0.8.21 #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tag-release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - version.txt | |
| permissions: | |
| contents: read | |
| jobs: | |
| tag: | |
| if: ${{ github.repository == 'kubernetes/node-problem-detector' }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| - run: /usr/bin/git config --global user.email [email protected] | |
| - 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 }} |