mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-08-22 03:35:44 +08:00
Create test-check-user.yml
This commit is contained in:
19
.github/workflows/test-check-user.yml
vendored
Normal file
19
.github/workflows/test-check-user.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: Check User Permission
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened, edited]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions-cool/check-user-permission@v2
|
||||||
|
id: check
|
||||||
|
with:
|
||||||
|
require: 'write'
|
||||||
|
check-contributor: true
|
||||||
|
|
||||||
|
- run: echo "user-permission = ${{ steps.check.outputs.user-permission }}"
|
||||||
|
- run: echo "require-result = ${{ steps.check.outputs.require-result }}"
|
||||||
|
- run: echo "check-result = ${{ steps.check.outputs.check-result }}"
|
Reference in New Issue
Block a user