Skip to content

Commit 866eac5

Browse files
authored
ci: disable nightly build in forked repos (#862)
The forked repos nightly build will waste a myriad of CPU resources.
1 parent 9b1f555 commit 866eac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
token: ${{ secrets.GITHUB_TOKEN }}
4848

4949
- name: Create nightly release
50-
if: github.ref == 'refs/heads/master'
50+
if: ${{ github.repository == 'rime/squirrel' && github.ref == 'refs/heads/master' }}
5151
uses: 'marvinpinto/action-automatic-releases@latest'
5252
with:
5353
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)