From 8098ede72cf34d812744a65fca342d29e98fda61 Mon Sep 17 00:00:00 2001 From: Eldritch-Oliver Date: Sat, 4 Oct 2025 20:44:01 -0600 Subject: [PATCH] Update action to use variable substitution --- .github/workflows/draft-release.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/draft-release.yaml b/.github/workflows/draft-release.yaml index aba5033..7d4a73f 100644 --- a/.github/workflows/draft-release.yaml +++ b/.github/workflows/draft-release.yaml @@ -29,13 +29,13 @@ jobs: if: ${{ steps.check-tag.outputs.exists == 'true' }} run: exit 1 - - name: Move system.json to a temp file - id: manifest-move - run: mv system.json module.temp.json - - - name: Update the download property in the manifest + - name: Update the manifest with the relevant properties id: manifest-update - run: cat module.temp.json | jq -r --tab '.download = "https://github.com/${{ github.repository }}/releases/download/v${{ steps.version.outputs.version }}/release.zip"' > system.json + uses: microsoft/variable-substitution@v1 + with: + files: "system.json" + env: + download: "https://github.com/${{ github.repository }}/releases/download/v${{ steps.version.outputs.version }}/release.zip" - name: Create the zip run: zip -r release.zip system.json module langs assets templates README.md