Skip to content

Commit e22facf

Browse files
authored
Restrict publish job to OData organization and allow it to be manually triggered (#352)
1 parent cf86cc0 commit e22facf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish_to_staging_slot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ on:
1111
workflow_dispatch: # Makes it possible to trigger workflow manually
1212

1313
jobs:
14-
build_and_deploy_job:
15-
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
14+
publish:
15+
if: github.repository_owner == 'OData' && (github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') || github.event_name == 'workflow_dispatch')
1616
runs-on: ubuntu-latest
1717

1818
steps:

0 commit comments

Comments
 (0)