mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-01 06:11:20 +00:00
feat(github): Add GitHub Actions (#916)
This commit is contained in:
parent
39c8545075
commit
ad28d54889
1
.github/CODEOWNERS
vendored
Normal file
1
.github/CODEOWNERS
vendored
Normal file
@ -0,0 +1 @@
|
||||
/.github/workflows/ @Ash258
|
||||
16
.github/workflows/issue_comment.yml
vendored
Normal file
16
.github/workflows/issue_comment.yml
vendored
Normal 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
16
.github/workflows/issues.yml
vendored
Normal 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
15
.github/workflows/pull_request.yml
vendored
Normal 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 }}
|
||||
Loading…
x
Reference in New Issue
Block a user