Skip to content

Commit

Permalink
allow deployment for authorized users only
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwiset25 committed Nov 16, 2023
1 parent b0cf030 commit be3cbb0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/pr_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ on:

jobs:
build_and_deploy:
if: startsWith(github.head_ref, 'feature') || startsWith(github.head_ref, 'fix')
if: |
( startsWith(github.head_ref, 'feature') ||
startsWith(github.head_ref, 'fix') )
&&
( github.actor == 'wanwiset25' ||
github.actor == 'GalaxySciTech' ||
github.actor == 'liam-lai' ||
github.actor == 'wjrjerome' ||
github.actor == 'wgr523' )
name: Deploy on PR
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit be3cbb0

Please sign in to comment.