Skip to content

Commit

Permalink
Apply trigger and branch restrictions to workflows (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
gathogojr committed Sep 27, 2023
1 parent bf1c9f4 commit 4a76eeb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/publish_to_production_slot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@
name: Publish OData org website to Azure Web App production slot

on:
push:
branches:
- master
workflow_dispatch: # Makes it possible to trigger workflow manually

jobs:
publish:
if: github.repository_owner == 'OData' && github.event_name == 'workflow_dispatch'
if: github.repository_owner == 'OData' && github.ref == 'refs/heads/master' && github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest

steps:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/publish_to_staging_slot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
name: Publish OData org website to Azure Web App staging slot

on:
push:
branches:
- master
workflow_dispatch: # Makes it possible to trigger workflow manually

jobs:
Expand Down

0 comments on commit 4a76eeb

Please sign in to comment.