Update dependency kubernetes-sigs/kustomize to v5.3.0 #29
Workflow file for this run
This file contains 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 push | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
types: | |
- closed | |
jobs: | |
push-tag: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/') | |
steps: | |
- name: Generate GitHub Apps token | |
id: generate | |
uses: actions/create-github-app-token@v1 | |
with: | |
app-id: ${{ secrets.APP_ID }} | |
private-key: ${{ secrets.PRIVATE_KEY }} | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ steps.generate.outputs.token }} | |
- name: push tag | |
run: | | |
BRANCH_NAME=${{ github.event.pull_request.head.ref }} | |
TAG=${BRANCH_NAME##*/} | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
git tag -a -m "Release $TAG" $TAG | |
git push origin $TAG | |