diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..432cfa3 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 +