From 7776d447e693acf4e58be66c775a74305ec6f705 Mon Sep 17 00:00:00 2001 From: Vincent Lopes-Vicente Date: Mon, 13 Feb 2023 14:47:41 +0100 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/release.yml 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 +