From a011019a68e4444021a97df5612b9d4cea4dbb44 Mon Sep 17 00:00:00 2001 From: Bambooin Date: Mon, 11 Mar 2024 20:01:49 +0800 Subject: [PATCH] ci: disable nightly build in forked repos The forked repos nightly build will waste a myriad of CPU resources. --- .github/workflows/release-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-ci.yml b/.github/workflows/release-ci.yml index 9240b007e..bb58f550e 100644 --- a/.github/workflows/release-ci.yml +++ b/.github/workflows/release-ci.yml @@ -33,7 +33,7 @@ jobs: merge-multiple: true - name: Create Nightly release - if: ${{ github.ref == 'refs/heads/master' }} + if: ${{ github.repository == 'rime/librime' && github.ref == 'refs/heads/master' }} uses: 'marvinpinto/action-automatic-releases@latest' with: repo_token: ${{ secrets.GITHUB_TOKEN }}