From d6958ea3ea2c601c0f50c7093aeeba4d505077c5 Mon Sep 17 00:00:00 2001 From: Dex Date: Mon, 6 May 2024 22:39:45 -0400 Subject: [PATCH] Adding Version releases --- .gitea/workflows/merge-master-tag-deploy.yaml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/merge-master-tag-deploy.yaml b/.gitea/workflows/merge-master-tag-deploy.yaml index 4788a0c..91b32f0 100644 --- a/.gitea/workflows/merge-master-tag-deploy.yaml +++ b/.gitea/workflows/merge-master-tag-deploy.yaml @@ -13,18 +13,18 @@ jobs: - name: Check out repository code uses: actions/checkout@v4 - #- uses: actions/github-script@v7 - # id: set-result - # with: - # script: | - # var fs = require("fs") - # var content = fs.readFileSync("package.json", { encoding: 'utf8', flag: 'r' }) - # var pkg = JSON.parse(content) - # return pkg.version - # result-encoding: string + - uses: actions/github-script@v7 + id: set-result + with: + script: | + var fs = require("fs") + var content = fs.readFileSync("package.json", { encoding: 'utf8', flag: 'r' }) + var pkg = JSON.parse(content) + return pkg.version + result-encoding: string - #- name: Get result - # run: echo "gitea.simplysyncedllc.com/dex/kx3dex_radio:${{steps.set-result.outputs.result}}" + - name: Get result + run: echo "gitea.simplysyncedllc.com/dex/kx3dex_radio:${{steps.set-result.outputs.result}}" - name: Install QEMU run: apt-get update && apt-get install -y qemu-user-static @@ -82,4 +82,4 @@ jobs: push: true tags: | gitea.simplysyncedllc.com/dex/kx3dex_radio:latest - # gitea.simplysyncedllc.com/dex/kx3dex_radio:${{steps.set-result.outputs.result}} + gitea.simplysyncedllc.com/dex/kx3dex_radio:${{steps.set-result.outputs.result}}