Skip to content

sync-kaggle

sync-kaggle #309

Workflow file for this run

name: sync-kaggle
on:
workflow_run:
workflows: ["build"]
types: [completed]
branches: [master]
workflow_dispatch:
jobs:
sync-kaggle:
runs-on: ubuntu-latest
container:
image: dcaribou/transfermarkt-datasets:linux-amd64-master
defaults:
run:
shell: bash -l {0}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
# see https://github.com/dcaribou/transfermarkt-datasets/issues/256
- run: |
git config --global --add safe.directory /__w/transfermarkt-datasets/transfermarkt-datasets
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v40
with:
files: |
data/prep.dvc
- name: pull data
if: ${{ steps.changed-files.outputs.any_changed == 'true' }}
run: |
dvc pull
- name: sync
if: ${{ steps.changed-files.outputs.any_changed == 'true' }}
env:
KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME }}
KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }}
run: |
make \
sync \
SYNCER=sync-kaggle