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