-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (33 loc) · 994 Bytes
/
tfwiki_stats.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
name: TFWiki Stats
on:
schedule:
- cron: '0 1 * * *' # Run the script daily, the script itself controls which reports are run
workflow_dispatch:
pull_request:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
run:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # We need full git history to use git merge-base
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: pip install -r requirements.txt
- run: python -u master.py
timeout-minutes: 600
env:
WIKI_USERNAME: ${{ secrets.WIKI_USERNAME }}
WIKI_PASSWORD: ${{ secrets.WIKI_PASSWORD }}
PULL_REQUEST_ID: ${{ github.event.pull_request.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
API_KEY: ${{ secrets.API_KEY }}
- uses: actions/upload-artifact@v4
with:
name: Failed uploads
path: wiki_*.txt
if-no-files-found: ignore