-
Notifications
You must be signed in to change notification settings - Fork 19
48 lines (40 loc) · 1.26 KB
/
normalize_repos.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
name: Normalize Repos
on:
schedule:
- cron: '0 0 * * *' # Daily at midnight (00:00)
workflow_dispatch:
jobs:
normalize_repos:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/setup-python
- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install system dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pipenv
# https://github.com/actions/checkout
- uses: actions/checkout@v4
with:
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
- name: Install app dependencies
run: pipenv sync --system
- name: Run script with token in env
run: ./normalize_repos.py
env:
ADMIN_GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }}
# https://github.com/actions/upload-artifact
- name: Export a report of invalid issues
uses: actions/upload-artifact@v4
with:
name: invalid-issue-report
path: /tmp/invalid_issues.yml
# https://github.com/gautamkrishnar/keepalive-workflow
- uses: gautamkrishnar/keepalive-workflow@v2
with:
committer_username: cc-open-source-bot
committer_email: [email protected]
time_elapsed: 46