Skip to content

Fix on push syntax

Fix on push syntax #2

Workflow file for this run

name: Update Data

Check failure on line 1 in .github/workflows/update-data.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-data.yml

Invalid workflow file

`push` requires a map value
on:
schedule:
- cron: "0 0 15 * *"
push:
- branches: "292-automate-data-prs"
jobs:
scheduled-job:
runs-on: ubuntu-latest
permissions:
contents: 'write'
id-token: 'write'
pull-requests: 'write'
steps:
- uses: actions/checkout@v4
- name: 'Authenticate to Google Cloud'
id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
workload_identity_provider: 'projects/855475113448/locations/global/workloadIdentityPools/eto-github/providers/eto-github'
service_account: '[email protected]'
create_credentials_file: 'true'
token_format: 'access_token'
- name: Update data
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
PYTHONPATH='.' python3 scripts/preprocess_for_website.py
pre-commit install
pre-commit run end-of-file-fixer
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
commit-message: Update datasets
add-paths: |
github-metrics/src/data/*
github-metrics/static/*
token: ${{ secrets.GITHUB_TOKEN }}
title: Data update
reviewers: jmelot