forked from microcumulus/ca-injector
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.03 KB
/
app_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Tag
on:
pull_request:
branches:
- 'main'
types:
- closed
paths:
- 'charts/ca-injector/Chart.yaml'
jobs:
create_tag:
if: |
(github.event.pull_request.merged == true) &&
contains(github.event.pull_request.labels.*.name, 'app-release')
runs-on: ubuntu-latest
outputs:
new_tag: ${{ steps.tag_version.outputs.new_tag }}
steps:
- uses: actions/checkout@v4
- name: Receive version
run: |
new_app_version=$(sed -n -e 's/^.*appVersion: //p' charts/ca-injector/Chart.yaml)
echo "new_app_version=${new_app_version}" >> $GITHUB_ENV
- name: create git tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ env.new_app_version }}
tag_prefix: ''
trigger_docker_build:
needs: [create_tag]
uses: ./.github/workflows/docker.yml
secrets: inherit
with:
tag: ${{ needs.create_tag.outputs.new_tag }}