diff options
| author | 2024-01-28 17:28:52 +0800 | |
|---|---|---|
| committer | 2024-01-28 17:28:52 +0800 | |
| commit | 164d8e066f0759f380513a25d5c07fb77a039103 (patch) | |
| tree | de7cc43c116c7258dbbff0ce5107e54549bbe39d /.github/workflows | |
| parent | 7b36b05355f140f5192f69f4f3d26dc56c8a1685 (diff) | |
| download | infini-164d8e066f0759f380513a25d5c07fb77a039103.tar.gz infini-164d8e066f0759f380513a25d5c07fb77a039103.zip | |
feat(workflows): add changelog for each
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/changelog.yml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 00000000..7b315f1f --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,43 @@ +name: CHANGELOG + +on: + push: + tags: + - "v*" + # - v[0-9]+.[0-9]+.[0-9]+ + +jobs: + deploy: + runs-on: ubuntu-latest + + 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
\ No newline at end of file |
