fix: gen-changelog.yml

This commit is contained in:
MistEO
2023-05-06 17:12:23 +08:00
committed by GitHub
parent c8f018d87b
commit a707ade237

View File

@@ -27,7 +27,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git switch dev
git branch -f changelog dev
git switch changelog
python3 tools/ChangelogGenerator/changelog_generator.py --tag "${{ steps.extract_tag.outputs.tag_name }}"
- name: Add files to git
@@ -40,8 +41,6 @@ jobs:
commit_msg="docs: Auto Generate Changelog of Release ""${{ steps.extract_tag.outputs.tag_name }}"
git commit -m "$commit_msg"
git branch -f changelog
git switch changelog
- name: Push changes # push the output folder to your repo
uses: ad-m/github-push-action@master