From b291614ae21b9d3c9072801cbb5f68dcf20b1b47 Mon Sep 17 00:00:00 2001 From: maforget <11904426+maforget@users.noreply.github.com> Date: Mon, 23 Sep 2024 17:08:11 -0400 Subject: [PATCH] Fixed version in winget manifest not going though (for real) It is now outputing the version for the publish job --- .github/workflows/nightly.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index f92fa97..ac0f8eb 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -15,6 +15,9 @@ jobs: build: runs-on: windows-2022 + outputs: + sha_short: ${{ steps.vars.outputs.sha_short }} + steps: - name: Checkout uses: actions/checkout@v4 @@ -38,7 +41,10 @@ jobs: - name: Get short sha id: vars - run: echo "sha_short=$(git rev-parse --short HEAD)" >> $env:GITHUB_OUTPUT + run: | + $sha_short = $(git rev-parse --short HEAD) + echo "sha_short=$sha_short" >> $env:GITHUB_OUTPUT + echo "Short SHA is $sha_short" - name: Download VC++ Redistributable (x64) run: | @@ -76,16 +82,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Get short sha - id: vars - run: echo "sha_short=$(git rev-parse --short HEAD)" >> $env:GITHUB_OUTPUT - - name: Publish Winget manifest uses: vedantmgoyal2009/winget-releaser@v2 with: identifier: maforget.ComicRackCE.Nightly release-tag: nightly - version: nightly-${{ steps.vars.outputs.sha_short }} # Use the short 7-digit commit SHA for the version + version: nightly-${{ needs.build.outputs.sha_short }} # Use the short 7-digit commit SHA for the version max-versions-to-keep: 5 # keep only latest 5 versions (recommended to reduce clutter since Nightly) token: ${{ secrets.WINGET_TOKEN }}