This repository has been archived by the owner on Jan 1, 2025. It is now read-only.
Run xbox-cloud-statistics #69983
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: Run xbox-cloud-statistics | |
on: | |
schedule: | |
- cron: "*/5 * * * *" | |
workflow_dispatch: | |
concurrency: | |
group: xbox-cloud-statistics | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
jobs: | |
run: | |
name: Run xbox-cloud-statistics | |
runs-on: self-hosted | |
environment: run | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: "poetry" | |
- name: Install Dependencies | |
run: poetry install --only main | |
- name: Run xbox-cloud-statistics | |
env: | |
CLIENT_ID: ${{ secrets.CLIENT_ID }} | |
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} | |
F2P_TOKEN: ${{ secrets.F2P_TOKEN }} | |
GPU_TOKEN: ${{ secrets.GPU_TOKEN }} | |
INFLUXDB_URL: ${{ secrets.INFLUXDB_URL }} | |
INFLUXDB_TOKEN: ${{ secrets.INFLUXDB_TOKEN }} | |
INFLUXDB_ORG: ${{ secrets.INFLUXDB_ORG }} | |
INFLUXDB_BUCKET: ${{ secrets.INFLUXDB_BUCKET }} | |
shell: bash | |
run: poetry run xbox-cloud-statistics | tee -a $GITHUB_STEP_SUMMARY |