diff options
| author | 2024-01-29 18:25:15 +0800 | |
|---|---|---|
| committer | 2024-01-29 18:25:15 +0800 | |
| commit | 90264b1630bf056a8fb62be3f6b104773cafcd36 (patch) | |
| tree | 661be9be8ed1faf7f6a99756275d146cff690455 /.github | |
| parent | 7757ee809e32d856a06d92f2286f9ca42500ddcd (diff) | |
| parent | e9e40cf67e8b4de885f89b835becfbc8bf5ed770 (diff) | |
| download | infini-90264b1630bf056a8fb62be3f6b104773cafcd36.tar.gz infini-90264b1630bf056a8fb62be3f6b104773cafcd36.zip | |
merge: merge with remote changes
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/changelog.yml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 00000000..b2b02277 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,47 @@ +name: CHANGELOG + +on: + push: + tags: + - "v*" + # - v[0-9]+.[0-9]+.[0-9]+ + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + id-token: write + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Update CHANGELOG + id: changelog + uses: requarks/changelog-action@v1 + with: + token: ${{ github.token }} + tag: ${{ github.ref_name }} + includeInvalidCommits: true + changelogFilePath: CHANGELOG.md + writeToFile: true + useGitmojis: false + + - name: Create Release + uses: ncipollo/release-action@v1.12.0 + with: + allowUpdates: true + draft: false + makeLatest: true + name: ${{ github.ref_name }} + body: ${{ steps.changelog.outputs.changes }} + token: ${{ github.token }} + + - name: Commit CHANGELOG.md + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: master + commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]' + file_pattern: CHANGELOG.md |
