Skip to content

Update dependency kubernetes-sigs/kustomize to v5.3.0 #29

Update dependency kubernetes-sigs/kustomize to v5.3.0

Update dependency kubernetes-sigs/kustomize to v5.3.0 #29

Workflow file for this run

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