Skip to content

Commit

Permalink
⏪ rewind ci changelog
Browse files Browse the repository at this point in the history
see issue with protected branch push: community/community#48232
  • Loading branch information
Roms1383 committed Feb 22, 2023
1 parent 7a3a367 commit cf63e97
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,36 +72,10 @@ jobs:
name: ${{ matrix.os }}-${{ github.ref_name }}-artifact
path: Addicted/Addicted-${{ matrix.os }}-${{ github.ref_name }}.zip
if-no-files-found: error
changelog:
if: ${{ startsWith(github.event.ref, 'refs/tags') }}
runs-on: ubuntu-latest
needs: bundle
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Regenerate CHANGELOG.md
run: |
git config user.name "kroms-bot"
git config user.email ""
cargo install gitmoji-changelog@0.3.0
rm -f CHANGELOG.md
gitmoji-changelog . -o CHANGELOG.md
git add CHANGELOG.md
git commit -m ":rocket: update changelog [no ci]" CHANGELOG.md
git push --force origin HEAD:main
env:
GITHUB_TOKEN: ${{ secrets.KROMS_BOT_TOKEN }}
release:
if: ${{ startsWith(github.event.ref, 'refs/tags') }}
runs-on: ubuntu-latest
needs: [bundle, changelog]
needs: bundle
steps:
- uses: actions/checkout@v3
with:
Expand Down

0 comments on commit cf63e97

Please sign in to comment.