Skip to content

Commit

Permalink
Remove unnecessary step for getting the previous release in build wor…
Browse files Browse the repository at this point in the history
…kflow
  • Loading branch information
ArthurKun21 committed Dec 9, 2024
1 parent e4b6939 commit 4f2433d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Get previous release
if: ${{ needs.build-app.outputs.CREATE_RELEASE == 'true' }}
id: last_release
uses: InsonusK/get-latest-release@7a9ff16c8c6b7ead5d71c0f1cc61f2703170eade # v1.1.0
with:
myToken: ${{ github.token }}
exclude_types: "draft|prerelease"
view_top: 1

- name: Update CHANGELOG.md
if: ${{ needs.build-app.outputs.CREATE_RELEASE == 'true' }}
run: |
echo -e "${{ needs.build-app.outputs.CHANGELOG }}\n[${{ steps.last_release.outputs.name }}](${{ steps.last_release.outputs.html_url }}) " >> CHANGELOG.md
echo -e "${{ needs.build-app.outputs.CHANGELOG }}" >> CHANGELOG.md
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
Expand Down

0 comments on commit 4f2433d

Please sign in to comment.