Skip to content

Commit

Permalink
feat(ci): Limit users who can trigger the deploy job to those from a var
Browse files Browse the repository at this point in the history
  • Loading branch information
kellnerd committed Jun 11, 2024
1 parent c7aa614 commit 0c9cd5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ jobs:
run: deno test -A

deploy:
if: vars.DEPLOY_ENABLED == 'true' && (startsWith(github.ref, 'refs/tags/v') || inputs.perform_deploy)
if: >-
vars.DEPLOY_ENABLED == 'true' &&
contains(fromJSON(vars.DEPLOYERS), github.actor) &&
(startsWith(github.ref, 'refs/tags/v') || inputs.perform_deploy)
runs-on: ubuntu-latest
needs: test

Expand Down

0 comments on commit 0c9cd5f

Please sign in to comment.