ci(windows): prevent winget action from creating an update when running on forks (#1505)
This commit is contained in:
parent
21dbde9467
commit
3fee592669
1 changed files with 4 additions and 1 deletions
5
.github/workflows/CI.yml
vendored
5
.github/workflows/CI.yml
vendored
|
|
@ -851,7 +851,10 @@ jobs:
|
|||
release-winget:
|
||||
name: Release to WinGet
|
||||
needs: [setup_release, build_win]
|
||||
if: ${{ needs.setup_release.outputs.create_release == 'true' && github.ref == 'refs/heads/master' }}
|
||||
if: |
|
||||
(github.repository_owner == 'LizardByte' &&
|
||||
needs.setup_release.outputs.create_release == 'true' &&
|
||||
github.ref == 'refs/heads/master')
|
||||
runs-on: windows-latest # the required action can only be run on Windows
|
||||
steps:
|
||||
- name: Release to WinGet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue