From 0515a87f72a344b632cdfe7894c8cc0fd4585315 Mon Sep 17 00:00:00 2001 From: jessebot Date: Tue, 9 Jan 2024 15:38:02 +0100 Subject: [PATCH] switch around order of getting tag --- .github/workflows/update-brew-package.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update-brew-package.yml b/.github/workflows/update-brew-package.yml index 8bd5438..9f25d9b 100644 --- a/.github/workflows/update-brew-package.yml +++ b/.github/workflows/update-brew-package.yml @@ -12,18 +12,17 @@ jobs: with: fetch-tags: true + - name: Get local tag + id: localTag + run: | + echo "tag=`echo $(git tag)`" + echo "tag=`echo $(git describe --tags --abbrev=0)`" >> "$GITHUB_OUTPUT" - name: Get upstream release id: upstreamRelease uses: pozetroninc/github-action-get-latest-release@master with: repository: small-hack/smol-k8s-lab - - name: Get local tag - id: localTag - run: | - echo "tag=`echo $(git describe --tags --abbrev=0)`" - echo "tag=`echo $(git describe --tags --abbrev=0)`" >> "$GITHUB_OUTPUT" - - name: Update Release run: | sed -i 's/${{ steps.localTag.outputs.tag }}/${{ steps.upstreamRelease.outputs.release }}/g' ./Formula/smol-k8s-lab.rb