Skip to content

Commit

Permalink
feature(main): fix rebot changelog for release
Browse files Browse the repository at this point in the history
  • Loading branch information
cuisongliu committed Apr 29, 2023
1 parent e76e1c1 commit 77eeb78
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,26 @@ jobs:
DOCKER_CLI_EXPERIMENTAL: "enabled"
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@3
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@master
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
Expand All @@ -41,3 +60,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.G_REGISTRY_TOKEN }}
VERSION: ${{ steps.prepare.outputs.tag_name }}
USERNAME: ${{ github.repository_owner }}
GORELEASER_PREVIOUS_TAG: ${{ steps.previoustag.outputs.PREVIOUS_TAG }}

0 comments on commit 77eeb78

Please sign in to comment.