-
Notifications
You must be signed in to change notification settings - Fork 18
39 lines (39 loc) · 1.07 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
name: Normalize Repos
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Daily at midnight (00:00)
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pipenv
pipenv sync
- name: Export token to env and run normalize script
run: |
pipenv run ./normalize_repos.py
env:
ADMIN_GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }}
- name: Export a report of invalid issues
uses: actions/upload-artifact@v2
with:
name: invalid-issue-report
path: /tmp/invalid_issues.yml
- uses: gautamkrishnar/keepalive-workflow@master
with:
committer_username: cc-open-source-bot
committer_email: opensource@creativecommons.org
time_elapsed: 46