Skip to content

Commit

Permalink
refactor(main): delete pre-tag (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: cuisongliu <[email protected]>
  • Loading branch information
cuisongliu authored Aug 26, 2023
1 parent 4e71daf commit f0afce4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,6 @@ jobs:
with:
go-version: 1.19.x


- name: Get previous tag
id: previoustag
run: |
PREVIOUS_TAG=$(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`)
echo "PREVIOUS_TAG=$PREVIOUS_TAG" >> $GITHUB_OUTPUT
- name: Display previous tag
run: |
echo "Previous tag: ${{ steps.previoustag.outputs.PREVIOUS_TAG }}"

- name: Set up Go
uses: actions/setup-go@master
with:
Expand All @@ -60,4 +48,3 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
VERSION: ${{ steps.prepare.outputs.tag_name }}
USERNAME: ${{ github.repository_owner }}
GORELEASER_PREVIOUS_TAG: ${{ steps.previoustag.outputs.PREVIOUS_TAG }}

0 comments on commit f0afce4

Please sign in to comment.