diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 6b703a4..90b9618 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -30,21 +30,22 @@ jobs: git config --global user.email "wangfj11@foxmail.com" git config --global user.name "AlianBlank" + - name: "✏️ Generate release changelog" + uses: heinrichreimer/action-github-changelog-generator@v2.3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Commit CHANGELOG.md + run: | + git add CHANGELOG.md + git commit -m "[修改]1.修改更新日志" + - name: change-version-by-tag uses: AlianBlank/github-action-tag-version@1.0.0 with: version: ${{ github.ref_name }} - + - name: Push changes uses: ad-m/github-push-action@master with: - branch: ${{ github.head_ref }} - - - changelog: - runs-on: ubuntu-latest - steps: - - name: "✏️ Generate release changelog" - uses: heinrichreimer/action-github-changelog-generator@v2.3 - with: - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + branch: ${{ github.head_ref }} \ No newline at end of file