Skip to content

Commit

Permalink
Set exact tag for provider when make release (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuteng authored Dec 13, 2024
1 parent 5d5dfcb commit cd72ec7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ jobs:
with:
ref: '${{ github.ref }}'
fetch-depth: 0

- name: Set Tag as Environment Variable
id: set_tag
run: |
echo "GORELEASER_CURRENT_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
LAST_TAG=$(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`)
echo "GORELEASER_PREVIOUS_TAG=$LAST_TAG" >> $GITHUB_ENV
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
with:
go-version-file: go.mod
Expand Down

0 comments on commit cd72ec7

Please sign in to comment.