From cceb017af7e104b8d2eef9409bf5646052528038 Mon Sep 17 00:00:00 2001 From: Miku <26039249+xMikux@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:19:07 +0000 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=B0=8F=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CI-Pack-ReleasePlease.yml | 23 +++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI-Pack-ReleasePlease.yml b/.github/workflows/CI-Pack-ReleasePlease.yml index 4db2ba9bf..dc5cda25b 100644 --- a/.github/workflows/CI-Pack-ReleasePlease.yml +++ b/.github/workflows/CI-Pack-ReleasePlease.yml @@ -15,21 +15,40 @@ concurrency: cancel-in-progress: true jobs: + json-formater: + name: Json Formater + runs-on: ubuntu-latest + if: github.repository == 'xMikux/ModsTranslationPack' + + steps: + - name: Checking Repository + uses: actions/checkout@v4 + + - name: Get Json + id: get_json + run: | + echo "json_data=$(cat .github/configs/changelog-types.json | jq -r tostring)" >> "$GITHUB_OUTPUT" + + outputs: + json_data: ${{ steps.get_json.outputs.json_data }} + release-please: name: Release Please runs-on: ubuntu-latest - if: github.repository == 'xMikux/ModsTranslationPack' + needs: [ json-formater ] + steps: - name: Release Please id: release_please uses: google-github-actions/release-please-action@v3 + with: release-type: simple pull-request-title-pattern: "chore${scope}: 發佈${component} ${version}" pull-request-header: ":robot: 我建立了發佈 *beep* *boop*" labels: "自動發佈:待定" release-labels: "自動發佈:已發佈" - changelog-types: .github/configs/changelog-types.json + changelog-types: ${{ needs.json-formater.outputs.json_data }} outputs: release_created: ${{ steps.release_please.outputs.release_created }}