mirror of https://github.com/ppy/osu
Update diffcalc workflow
This commit is contained in:
parent
6ef54321c4
commit
4490dbf896
|
@ -110,10 +110,14 @@ jobs:
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.comment.body, '!diffcalc') }}
|
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.comment.body, '!diffcalc') }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check permissions
|
- name: Check permissions
|
||||||
if: ${{ github.event_name != 'workflow_dispatch' }}
|
run: |
|
||||||
uses: actions-cool/check-user-permission@a0668c9aec87f3875fc56170b6452a453e9dd819 # v2.2.0
|
ALLOWED_USERS=(smoogipoo peppy bdach)
|
||||||
with:
|
for i in "${ALLOWED_USERS[@]}"; do
|
||||||
require: 'write'
|
if [[ "${{ github.actor }}" == "$i" ]]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
exit 1
|
||||||
|
|
||||||
create-comment:
|
create-comment:
|
||||||
name: Create PR comment
|
name: Create PR comment
|
||||||
|
|
Loading…
Reference in New Issue