Buckets:
| name: R | |
| on: | |
| workflow_dispatch: | |
| # schedule: | |
| # - cron: '0 16 13 2 *' | |
| env: | |
| ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
| jobs: | |
| extract-telemetry: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository (scripts only) | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| sparse-checkout: | | |
| cache/1.txt | |
| cache_preseason/1.txt | |
| requirements.txt | |
| telR.py | |
| utils.py | |
| sparse-checkout-cone-mode: false | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies with uv | |
| run: | | |
| uv pip install --system -r requirements.txt | |
| - name: Configure Git | |
| run: | | |
| git config --local user.name "github-actions[bot]" | |
| git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Run Telemetry Extraction | |
| run: python telR.py | |
| env: | |
| GITHUB_ACTIONS: "true" | |
| - name: Commit and push changes | |
| run: | | |
| # Temporarily disable sparse-checkout advice and add files with --sparse flag | |
| git config advice.updateSparsePath false | |
| # Find all JSON files created/modified by the script | |
| # Add them with --sparse flag to allow adding outside sparse-checkout | |
| find . -type f -name "*.json" -not -path "./.git/*" -exec git add --force --sparse {} + | |
| # Also add the log file if it exists | |
| if [ -f "laptimes_extraction.log" ]; then | |
| git add --force --sparse laptimes_extraction.log | |
| fi | |
| # Check if there are staged changes | |
| if ! git diff --cached --quiet; then | |
| git commit -m "Update F1 telemetry data [skip ci]" | |
| git push origin main | |
| else | |
| echo "No changes to commit" | |
| fi | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
Xet Storage Details
- Size:
- 2.22 kB
- Xet hash:
- 8183b86a966e7c50bc3307639751370d6e8b269eb6035aa2a485d1bf19c678f8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.