diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-03-04 04:16:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 04:16:02 +0300 |
commit | 9408e5410ccdd7f1fc430fa6e0fa0549d526d569 (patch) | |
tree | 492f1788ce7c23f3d1563d0c6cc4d2947e4cbfdd /.github | |
parent | bfa3a03804d4feec7efe01145ab5dfd9b9a1aeb7 (diff) |
Allow release action only for certain users (#18876)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/release.yml | 8 |
1 files changed, 7 insertions, 1 deletions
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 |