Skip to content

Commit bb77ab5

Browse files
committed
fix: remove duplicate code
1 parent 745fcb3 commit bb77ab5

1 file changed

Lines changed: 0 additions & 37 deletions

File tree

.github/workflows/add_tag.yml

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -48,40 +48,3 @@ jobs:
4848
tag: ${{ needs.release_commit_check.outputs.new_version }}
4949
commit_sha: ${{ github.sha }}
5050
github_token: ${{ secrets.GITHUB_TOKEN }}
51-
52-
draft_changelog:
53-
runs-on: ubuntu-latest
54-
needs: [add_version, release_commit_check]
55-
outputs:
56-
release_body: ${{ steps.git_cliff.outputs.content }}
57-
steps:
58-
- name: Checkout Repository at Tagged Commit
59-
uses: actions/checkout@v4
60-
with:
61-
fetch-depth: 0
62-
ref: ${{ needs.release_commit_check.outputs.new_version }}
63-
- name: Generate Changelog
64-
id: git_cliff
65-
uses: orhun/git-cliff-action@v4
66-
with:
67-
args: --latest --verbose
68-
env:
69-
GITHUB_REPO: ${{ github.repository }}
70-
71-
create_github_release:
72-
runs-on: ubuntu-latest
73-
permissions:
74-
contents: write
75-
pull-requests: read
76-
needs: [release_commit_check, draft_changelog]
77-
steps:
78-
- name: Create Release
79-
uses: softprops/action-gh-release@v2
80-
env:
81-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82-
with:
83-
name: ${{ needs.release_commit_check.outputs.new_version }}
84-
body: |
85-
${{ needs.draft_changelog.outputs.release_body }}
86-
draft: false
87-
prerelease: false

0 commit comments

Comments
 (0)