-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.15 KB
/
run.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
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