Skip to content

Commit

Permalink
switch around order of getting tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebot committed Jan 9, 2024
1 parent b313103 commit 0515a87
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/update-brew-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0515a87

Please sign in to comment.