Skip to content

Commit

Permalink
Trying to restrict release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalyisaev2 committed Dec 21, 2023
1 parent 6552d4b commit 3883653
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
run: |
echo "This workflow should not be triggered with workflow_dispatch on a branch other than main"
exit 1
- name: Fail if user is not admin
if: !(github.actor == 'vitalyisaev2' || github.actor == 'uzhastik')
run: |
echo "This workflow should be triggered only by repository admins"
exit 1
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down

0 comments on commit 3883653

Please sign in to comment.