From be3cbb0b14cef0674a54951503c0c3da757ee354 Mon Sep 17 00:00:00 2001 From: wanwiset25 Date: Thu, 16 Nov 2023 17:09:30 +0400 Subject: [PATCH] allow deployment for authorized users only --- .github/workflows/pr_deploy.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_deploy.yml b/.github/workflows/pr_deploy.yml index 44ec01c..adc88c1 100644 --- a/.github/workflows/pr_deploy.yml +++ b/.github/workflows/pr_deploy.yml @@ -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: