Skip to content

Commit

Permalink
retry to download the dataset in case of temprary errors
Browse files Browse the repository at this point in the history
  • Loading branch information
maxisoft committed Aug 6, 2024
1 parent f0bff77 commit 483ea01
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/doit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,15 @@ jobs:
KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }}

- name: Setup the dirs
uses: Wandalen/[email protected]

if: ${{ github.actor == github.repository_owner }}
run: |
mkdir -p tmp
mkdir -p working
mkdir -p input
kaggle datasets download -d ${{ env.KAGGLE_USERNAME }}/${{ env.KAGGLE_DATASET }} -p input --unzip
with:
command: |
mkdir -p tmp
mkdir -p working
mkdir -p input
kaggle datasets download -d ${{ env.KAGGLE_USERNAME }}/${{ env.KAGGLE_DATASET }} -p input --unzip
env:
KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME || vars.KAGGLE_USERNAME || env.KAGGLE_USERNAME || github.repository_owner }}
KAGGLE_DATASET: ${{ secrets.KAGGLE_DATASET || vars.KAGGLE_DATASET || env.KAGGLE_DATASET || 'yahoo-finance-data' }}
Expand Down

0 comments on commit 483ea01

Please sign in to comment.