Skip to content

Commit fda7cdf

Browse files
authored
Allow to run in forks on workflow dispatch (#4)
1 parent e294109 commit fda7cdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/buildReleaseAndPublish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
# Elevates permissions for `GITHUB_TOKEN`'s content scope (to allow this action to make a release)
2222
permissions:
2323
contents: write
24-
# Don't run this in everyone's forks.
25-
if: github.repository == 'llvm/torch-mlir-release'
24+
# Don't run this in everyone's forks on schedule but allow to run via dispatch.
25+
if: ${{ github.repository_owner == 'llvm' || github.event_name != 'schedule' }}
2626
strategy:
2727
matrix:
2828
package: [torch-mlir]

0 commit comments

Comments
 (0)