Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update datasets weekly #170

Merged
merged 3 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/update_datasets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Update Datasets and Create PR

on:
schedule:
- cron: '0 2 * * *' # Runs at 02:00 UTC every day
- cron: '0 2 * * 7' # Runs at 02:00 UTC every Sunday
workflow_dispatch: # This line enables manual triggering of the workflow

jobs:
Expand Down Expand Up @@ -31,19 +31,20 @@ jobs:
git diff
if [ -n "$(git status -s)" ]; then
echo "Changes detected"
echo "::set-output name=changes_detected::true"
fi
echo "changes_detected=true" >> $GITHUB_ENV
else
echo "changes_detected=false" >> $GITHUB_ENV
- name: Commit changes
if: steps.git-check.outputs.changes_detected == 'true'
if: env.changes_detected == 'true'
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m "GitHub Action: Update datasets"
- name: Create Pull Request
if: steps.git-check.outputs.changes_detected == 'true'
if: env.changes_detected == 'true'
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion docs/datasets/climate_model_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
/nfs/atmos/c2sm/cmip6-ng
```

- Size: 200.62 TB :material-information-outline:{ title="last updated: 2024-07-15 11:26:46" }
- Size: 200.62 TB :material-information-outline:{ title="last updated: 2024-07-15 11:26:45" }
- Number of files: 663,800 :material-information-outline:{ title="last updated: 2024-07-15 11:26:46" }
- Access: direct / rsync
- Status: frozen (2019-03)
Expand Down
Loading