From 486e8c8d0db64819042662438230a724c4368d7f Mon Sep 17 00:00:00 2001 From: Wu Clan Date: Sat, 24 Aug 2024 16:43:02 +0800 Subject: [PATCH] Add ci for change logs (#18) --- .github/workflows/changelog.yml | 27 +++++++++++++++++++++++++++ docs/changelog.md | 1 + 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/changelog.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..8c54157 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,27 @@ +name: Change Logs + +on: + pull_request_target: + branches: + - master + types: + - closed + # For manually triggering it + workflow_dispatch: + inputs: + number: + description: PR number + required: true + +jobs: + latest-changes: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.GH_TOKEN }} + - uses: docker://tiangolo/latest-changes:0.3.0 + with: + token: ${{ secrets.GH_TOKEN }} + latest_changes_file: docs/changelog.md + latest_changes_header: '# Change Logs' diff --git a/docs/changelog.md b/docs/changelog.md index e69de29..f1c6f72 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -0,0 +1 @@ +# Change Logs