Set of automated actions, which bucket maintainers can use to save time managing issues / pull requests.
GITHUB_TOKEN
${{ secrets.GITHUB_TOKEN }}
USER_EMAIL
SCOOP_REPO
SCOOP_BRANCH
SKIP_UPDATED
'1'
or '0'
THROW_ERROR
'1'
or '0'
SPECIAL_SNOWFLAKES
,
used as parameter for auto-pr utility.As soon as a new issue is created or the label verify
is added to an issue, the action is executed.
Based on the issue title, a specific sub-action is executed.
It could be one of these:
<manifest>@<version>: Fix hash
are listed
duplicate
added<manifest>-hash-fix-<random>
is createdhash-fix-needed
, verified
are addedhash-fix-needed
is removedmanifest-fix-needed
is addedmanifest-fix-needed
, verified
, help wanted
are addedAs soon as a PR is created or the comment /verify
is posted to it, validation tests are executed (see wiki) for detailed desciption):
License
, Description
) are in placeif
statements are not required
#.github\workflows\schedule.yml
on:
schedule:
- cron: '*/30 * * * *'
name: Excavator
jobs:
excavate:
name: Excavator
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- name: Excavator
uses: ScoopInstaller/GithubActions@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SKIP_UPDATED: '1'
THROW_ERROR: '0'
#.github\workflows\issues.yml
on:
issues:
types: [ opened, labeled ]
name: Issue
jobs:
issueHandler:
name: Issue Handler
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- name: Issue Handler
uses: ScoopInstaller/Scoop-GithubActions@main
if: github.event.action == 'opened' || (github.event.action == 'labeled' && contains(github.event.issue.labels.*.name, 'verify'))
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#.github\workflows\issue_commented.yml
on:
issue_comment:
types: [ created ]
name: Commented Pull Request
jobs:
pullRequestHandler:
name: Pull Request Validator
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- name: Pull Request Validator
uses: ScoopInstaller/GithubActions@main
if: startsWith(github.event.comment.body, '/verify')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#.github\workflows\pull_request.yml
on:
pull_request_target:
types: [ opened ]
name: Pull Requests
jobs:
pullRequestHandler:
name: Pull Request Validator
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- name: Pull Request Validator
uses: ScoopInstaller/GithubActions@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}