From 9408e5410ccdd7f1fc430fa6e0fa0549d526d569 Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Fri, 4 Mar 2022 02:16:02 +0100 Subject: Allow release action only for certain users (#18876) --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 10e5180cfd..179d1d47dc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,7 +43,13 @@ jobs: uses: actions/github-script@v3 with: script: | - core.setFailed('Release password didn\'t match') + core.setFailed('Release password didn\'t match.') + - name: "Check if user is allowed" + if: ${{ github.actor != 'mattab' && github.actor != 'tsteur' && github.actor != 'sgiehl' && github.actor != 'justinvelluppillai' }} + uses: actions/github-script@v3 + with: + script: | + core.setFailed('User is not allowed to release.') - uses: actions/checkout@v2 with: lfs: false -- cgit v1.2.3