Skip to content

Update F1DB Data

Update F1DB Data #6

Workflow file for this run

name: Update F1DB Data
on:
schedule:
- cron: '0 2 * * *' # Exécute tous les jours à 2h du matin
workflow_dispatch:
runs:

Check failure on line 8 in .github/workflows/update_data.yml

View workflow run for this annotation

GitHub Actions / Update F1DB Data

Invalid workflow file

The workflow is not valid. .github/workflows/update_data.yml (Line: 8, Col: 1): Unexpected value 'runs'
using: 'node20'
main: 'main.js'
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install requests
- name: Update F1DB Data
run: |
python update_data.py
- name: Commit and push changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update F1DB data"
git push
env:
GITHUB_TOKEN: ${{ secrets.WORKLOW_GITHUB_TOKEN }}