Skip to content

Commit 4a76eeb

Browse files
authored
Apply trigger and branch restrictions to workflows (#363)
1 parent bf1c9f4 commit 4a76eeb

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.github/workflows/publish_to_production_slot.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@
55
name: Publish OData org website to Azure Web App production slot
66

77
on:
8-
push:
9-
branches:
10-
- master
118
workflow_dispatch: # Makes it possible to trigger workflow manually
129

1310
jobs:
1411
publish:
15-
if: github.repository_owner == 'OData' && github.event_name == 'workflow_dispatch'
12+
if: github.repository_owner == 'OData' && github.ref == 'refs/heads/master' && github.event_name == 'workflow_dispatch'
1613
runs-on: ubuntu-latest
1714

1815
steps:

.github/workflows/publish_to_staging_slot.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
name: Publish OData org website to Azure Web App staging slot
66

77
on:
8-
push:
9-
branches:
10-
- master
118
workflow_dispatch: # Makes it possible to trigger workflow manually
129

1310
jobs:

0 commit comments

Comments
 (0)