Skip to content

Commit

Permalink
fixed previous tag for goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
gebv committed Jan 23, 2022
1 parent 70256fa commit 598374d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Get previous tag
run:
echo "PREVIOUS_TAG=$(git -c log.showSignature=false describe --abbrev=0 ${GITHUB_REF}^)" >> $GITHUB_ENV

- name: Install goreleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand All @@ -31,4 +29,3 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
GORELEASER_PREVIOUS_TAG: ${{ env.PREVIOUS_TAG }}

0 comments on commit 598374d

Please sign in to comment.