Skip to content

Commit a8ffb6e

Browse files
added release workflow
1 parent fb8a615 commit a8ffb6e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/release.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Check out repository code
11+
uses: actions/checkout@v3
12+
- name: get tag
13+
run: |
14+
echo "NEW_TAG=$(yq e '.configMapGenerator.0.literals.0' ${{ github.workspace }}/csdp/base/kustomization.yaml | awk '{split($0,a,"="); print a[2]}')" >> $GITHUB_ENV
15+
- name: Bump version and push tag
16+
uses: anothrNick/github-tag-action@1.36.0
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
WITH_V: false
20+
CUSTOM_TAG: ${{ env.NEW_TAG }}

0 commit comments

Comments
 (0)