Skip to content

Commit

Permalink
ci: disable nightly build in forked repos (#862)
Browse files Browse the repository at this point in the history
The forked repos nightly build will waste a myriad of CPU resources.
  • Loading branch information
Bambooin authored Apr 15, 2024
1 parent 9b1f555 commit 866eac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

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

0 comments on commit 866eac5

Please sign in to comment.