TFWiki Stats #1527
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |