feat(github): Add GitHub Actions (#916)

This commit is contained in:
Jakub Čábera 2020-04-01 15:01:40 +02:00 committed by GitHub
parent 39c8545075
commit ad28d54889
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 48 additions and 0 deletions

1
.github/CODEOWNERS vendored Normal file
View File

@ -0,0 +1 @@
/.github/workflows/ @Ash258

16
.github/workflows/issue_comment.yml vendored Normal file
View File

@ -0,0 +1,16 @@
on:
issue_comment:
types: [ created ]
name: Commented Pull Request
jobs:
pullRequestHandler:
name: PullRequestHandler
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: PullRequestHandler
uses: Ash258/Scoop-GithubActions@stable
if: startsWith(github.event.comment.body, '/verify')
env:
GITH_EMAIL: cabera.jakub@gmail.com
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

16
.github/workflows/issues.yml vendored Normal file
View File

@ -0,0 +1,16 @@
on:
issues:
types: [ opened, labeled ]
name: Issues
jobs:
issueHandler:
name: IssueHandler
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: IssueHandler
uses: Ash258/Scoop-GithubActions@stable
if: github.event.action == 'opened' || (github.event.action == 'labeled' && contains(github.event.issue.labels.*.name, 'verify'))
env:
GITH_EMAIL: cabera.jakub@gmail.com
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

15
.github/workflows/pull_request.yml vendored Normal file
View File

@ -0,0 +1,15 @@
on:
pull_request:
types: [ opened ]
name: Pull Requests
jobs:
pullRequestHandler:
name: PullRequestHandler
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: PullRequestHandler
uses: Ash258/Scoop-GithubActions@stable
env:
GITH_EMAIL: cabera.jakub@gmail.com
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}