-
-
Notifications
You must be signed in to change notification settings - Fork 34
53 lines (44 loc) · 1.5 KB
/
report.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
49
50
51
52
53
name: Generate Report
on:
schedule:
# at 01:15 on days 1-20 in third month of each quarter
- cron: '15 1 1-20 3,6,9,12 *'
workflow_dispatch:
jobs:
generate-report:
runs-on: ubuntu-latest
# CC Technology team members:
# See cc-quantifying-bot GitHub entry in Bitwarden for information on
# BOT_ secrets
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.BOT_TOKEN }}
- name: Configure git
run: |
git config user.name "${{ secrets.BOT_NAME }}"
git config user.email "${{ secrets.BOT_EMAIL }}"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install pipenv
pipenv sync --system
- name: Set PYTHONPATH
run: echo "PYTHONPATH=./scripts" >> $GITHUB_ENV
- name: Run report script
run:
# ./scripts/3-report/deviantart_reports.py
# ./scripts/3-report/flickr_reports.py
# ./scripts/3-report/github_reports.py
# ./scripts/3-report/internetarchive_reports.py
# ./scripts/3-report/metmuseum_reports.py
# ./scripts/3-report/vimeo_reports.py
# ./scripts/3-report/wikicommons_reports.py
# ./scripts/3-report/wikipedia_reports.py
# ./scripts/3-report/youtube_reports.py
./scripts/3-report/gcs_reports.py