From b60f45bf9e3b8720a40d2a8d72eeffad0162a132 Mon Sep 17 00:00:00 2001 From: fxliang Date: Wed, 2 Oct 2024 23:35:33 +0800 Subject: [PATCH] ci: release and update testing appcast only in rime/weasel --- .github/workflows/release-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index 47d6630f2..b1d03e224 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -103,7 +103,7 @@ jobs: # create stable release - name: Release uses: softprops/action-gh-release@v2 - if: startsWith(github.ref, 'refs/tags/') + if: ${{ github.repository == 'rime/weasel' && startsWith(github.ref, 'refs/tags/') }} with: files: | ./output/archives/weasel*.exe @@ -111,6 +111,7 @@ jobs: body_path: ${{ github.workspace }}/RELEASE_CHANGELOG.md - name: Update testing Appcast + if: ${{ github.repository == 'rime/weasel' }} run: gh workflow run gh-pages.yml -R rime/home --ref master env: GH_TOKEN: ${{ secrets.ACTIONS_DEPLOY_KEY }}