From 4acec1d18bf753881b756e0baacc702e4837dec0 Mon Sep 17 00:00:00 2001 From: Zing Date: Sun, 1 May 2022 16:13:50 +0800 Subject: [PATCH] Calling a reusable workflow for update-changelog (#143) --- .github/workflows/update-changelog.yaml | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/.github/workflows/update-changelog.yaml b/.github/workflows/update-changelog.yaml index 1f8a2b3..73aef29 100644 --- a/.github/workflows/update-changelog.yaml +++ b/.github/workflows/update-changelog.yaml @@ -6,24 +6,6 @@ on: jobs: update: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - ref: ${{ github.event.release.target_commitish }} - token: ${{ secrets.ACCESS_TOKEN }} - - - name: Update Changelog - uses: stefanzweifel/changelog-updater-action@v1 - with: - latest-version: ${{ github.event.release.name }} - release-notes: ${{ github.event.release.body }} - - - name: Commit updated CHANGELOG - uses: stefanzweifel/git-auto-commit-action@v4 - with: - branch: ${{ github.event.release.target_commitish }} - commit_message: Update CHANGELOG - file_pattern: CHANGELOG.md + uses: zingimmick/.github/.github/workflows/update-changelog.yml@main + secrets: + token: ${{ secrets.ACCESS_TOKEN }}