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 b88b294 commit fd3b521
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/pr_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ 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: Test and deploy on PR
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit fd3b521

Please sign in to comment.