Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lopes-vincent authored Feb 13, 2023
1 parent 51935b3 commit 7776d44
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: release
on:
push:
branches: [ master, main ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: fabasoad/data-format-converter-action@main
id: xml2json
with:
input: 'Config/module.xml'
from: 'xml'
to: 'json'
- name: Print result
run: echo "${{ fromJSON(steps.xml2json.outputs.output).module.version }}"
- name: Create Release
uses: ncipollo/release-action@v1.12.0
with:
tag: ${{ fromJSON(steps.xml2json.outputs.output).module.version }}
skipIfReleaseExists: true

0 comments on commit 7776d44

Please sign in to comment.