From 71af23d2ffe9b2e7ecea5088be8bb278575aaac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20J=C3=A4hn?= Date: Mon, 15 Jul 2024 12:11:54 +0200 Subject: [PATCH] Update datasets weekly (#170) * Replace set-output command with environment variable * Change from daily to weekly * Modify time stamp to trigger workflow --- .github/workflows/update_datasets.yml | 11 ++++++----- docs/datasets/climate_model_data.md | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update_datasets.yml b/.github/workflows/update_datasets.yml index 77602a81..164617e8 100644 --- a/.github/workflows/update_datasets.yml +++ b/.github/workflows/update_datasets.yml @@ -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: @@ -31,11 +31,12 @@ 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' @@ -43,7 +44,7 @@ jobs: 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 }} diff --git a/docs/datasets/climate_model_data.md b/docs/datasets/climate_model_data.md index 81580abd..ac557d6c 100644 --- a/docs/datasets/climate_model_data.md +++ b/docs/datasets/climate_model_data.md @@ -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)