-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 912 Bytes
/
scan-joins.yml
File metadata and controls
36 lines (30 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Daily scan join issues
on:
# impl by: https://github.com/mcpp-community/mcpp-bot
#schedule:
# - cron: "20 2 * * *" # 每天 02:20
workflow_dispatch:
permissions:
issues: write
contents: read
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create GitHub App installation token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: mcpp-community
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Scan and close completed issues
env:
ORG: mcpp-community # ${{ vars.ORG }}
GH_TOKEN: ${{ steps.app-token.outputs.token }}
REPO: ${{ github.repository }}
run: python .github/scripts/scan_join_issues.py