Skip to content

Commit

Permalink
fix: Retracting the mistakenly published version 1.0.0
Browse files Browse the repository at this point in the history
feature: Adding git-cliff to the github actions to auto generate changelogs
  • Loading branch information
Guney Saramali committed Jun 18, 2024
1 parent acea00c commit 174cb43
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/set-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,22 @@ jobs:
with:
branch: master

- name: Generate a changelog
uses: orhun/git-cliff-action@v3
id: git-cliff
with:
config: cliff.toml
args: v${{ steps.auto_commit_action.outputs.commit_hash }}..latest
env:
OUTPUT: CHANGELOG.md

- name: Create release tag
uses: rickstaa/action-create-tag@v1
id: "tag_create"
with:
tag: "v${{ steps.split_version.outputs.version }}"
tag_exists_error: false
message: "Release version: ${{ steps.split_version.outputs.version }}"
message: "${{ steps.git-cliff.outputs.changelog }}"
github_token: ${{ secrets.PAT }}
commit_sha: ${{ steps.auto_commit_action.outputs.commit_hash }}

Expand All @@ -49,6 +58,6 @@ jobs:
tag: "latest"
tag_exists_error: false
force_push_tag: true
message: "Release version: ${{ steps.split_version.outputs.version }}"
message: "${{ steps.git-cliff.outputs.changelog }}"
github_token: ${{ secrets.PAT }}
commit_sha: ${{ steps.auto_commit_action.outputs.commit_hash }}
4 changes: 4 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ require (
github.com/alexflint/go-arg v1.5.0 // indirect
github.com/alexflint/go-scalar v1.2.0 // indirect
)

retract (
v1.0.0 // Published accidentally.
)

0 comments on commit 174cb43

Please sign in to comment.