mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-23 04:27:25 +08:00
cbbcc65931
* feat(workflows/ci): upload .pdb file too * feat(workflows/ci): cmake args, pdb seperate artifact * refactor(workflows/autoblocker): remove trailing whitespace
25 lines
668 B
YAML
25 lines
668 B
YAML
name: Autolocker
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [closed]
|
|
|
|
permissions: write-all
|
|
|
|
jobs:
|
|
autolock:
|
|
# if: ${{ github.event.pull_request.merged }} # Uncomment if you want it to run only when a PR gets MERGED
|
|
runs-on: ubuntu-latest
|
|
name: Autolocker
|
|
steps:
|
|
- name: Autolock PRs that got merged or closed
|
|
uses: actions/github-script@v6
|
|
with:
|
|
script: |
|
|
github.rest.issues.lock({
|
|
issue_number: context.issue.number,
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
lock_reason: "resolved" // ["off-topic", "too heated", "resolved", "spam"]
|
|
})
|