From fd3b521831cd18216a91b2597627b8658823f07b Mon Sep 17 00:00:00 2001 From: wanwiset25 Date: Thu, 16 Nov 2023 17:07:23 +0400 Subject: [PATCH] allow deployment for authorized users only --- .github/workflows/pr_deploy.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_deploy.yml b/.github/workflows/pr_deploy.yml index c61ea55..044d909 100644 --- a/.github/workflows/pr_deploy.yml +++ b/.github/workflows/pr_deploy.yml @@ -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: