aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2024-08-15 17:54:33 +0800
committerHsiangNianian <i@jyunko.cn>2024-08-15 17:54:33 +0800
commitf5ef7faef82f3c550882de8b5fea335400b37386 (patch)
tree594e1819c31e26e9d3850c9dcc2e7fb8767a58f1 /.github/workflows
parent2c1d8b21344ff365a5d732696a5505a50037eac7 (diff)
downloadfaq-f5ef7faef82f3c550882de8b5fea335400b37386.tar.gz
faq-f5ef7faef82f3c550882de8b5fea335400b37386.zip
workflow: upload changelog actions
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/changelog.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml
new file mode 100644
index 0000000..d6917bd
--- /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@v4
+
+ - 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.14.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@v5
+ with:
+ branch: main
+ commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
+ file_pattern: CHANGELOG.md \ No newline at end of file