mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
use bot for tests
This commit is contained in:
parent
6d0f1066a5
commit
a18843e281
2 changed files with 37 additions and 30 deletions
22
.github/workflows/bot_run_tests.yml
vendored
Normal file
22
.github/workflows/bot_run_tests.yml
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
name: Run tests on PR
|
||||
on: issue_comment
|
||||
|
||||
jobs:
|
||||
pr_commented:
|
||||
name: Run Tests for PR
|
||||
if: >
|
||||
github.event.issue.pull_request &&
|
||||
contains(github.event.issue.bodyText, '/run tests')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check association
|
||||
run: |
|
||||
allowed=("OWNER" "COLLABORATOR")
|
||||
value="\<${{ github.event.issue.author_association }}\>"
|
||||
|
||||
if [[ ${array[@]} =~ $value ]]
|
||||
then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue