Skip to content

Commit

Permalink
do some clean up, change time of cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz-Alexander-Kern committed Jun 3, 2024
1 parent c34b893 commit 0b180a8
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/cache_elephant_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- master
schedule:
- cron: "0 12 * * *" # Daily at noon UTC
- cron: "11 23 * * *" # Daily at 23:11 UTC

pull_request:
branches:
Expand All @@ -19,13 +19,10 @@ on:
jobs:
create-data-cache-if-missing:
name: Caching data env
runs-on: ${{ matrix.os }}
runs-on: macos-latest
strategy:
# do not cancel all in-progress jobs if any matrix job fails
fail-fast: false
matrix:
# OS [ubuntu-latest, macos-latest, windows-latest]
os: [macos-latest]

steps:
- name: Get current hash (SHA) of the elephant_data repo
Expand All @@ -50,8 +47,8 @@ jobs:
git config --global user.name "elephant CI"
git config --global filter.annex.process "git-annex filter-process" # recommended for efficiency
- name: Install Datalad macOS
if: steps.cache-datasets.outputs.cache-hit != 'true' && runner.os == 'macOS'
- name: Install Datalad
if: steps.cache-datasets.outputs.cache-hit != 'true'
run: |
brew install datalad
Expand All @@ -64,7 +61,7 @@ jobs:
datalad --version
datalad install --recursive --get-data https://gin.g-node.org/NeuralEnsemble/elephant-data
- name: Show size of the cache to assert data is downloaded macOS
- name: Show size of the cache to assert data is downloaded
run: |
cd ~
du -hs ~/elephant-data
Expand Down

0 comments on commit 0b180a8

Please sign in to comment.