-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.01 KB
/
auto_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
name: Auto Release
on:
workflow_call:
jobs:
auto_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: fabasoad/data-format-converter-action@v0.2.4
id: xml2json
with:
input: 'Config/module.xml'
from: 'xml'
to: 'json'
- name: Get commit sha
shell: bash
run: echo "commit_sha=$(echo ${GITHUB_SHA})" >> "$GITHUB_OUTPUT"
id: commit_sha
- name: Display commit sha
shell: bash
run: echo ${{steps.commit_sha.outputs.commit_sha}}
- uses: rickstaa/action-create-tag@v1
id: "tag_create"
with:
tag: ${{ fromJSON(steps.xml2json.outputs.output).module.version }}
tag_exists_error: false
commit_sha: ${{steps.commit_sha.outputs.commit_sha}}
- name: Create Release
uses: ncipollo/release-action@v1.12.0
with:
tag: ${{ fromJSON(steps.xml2json.outputs.output).module.version }}
skipIfReleaseExists: true