From 7e258fbfc60af5cc2ff4f0b68b15b679051cf0e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20J=C3=A4hn?= Date: Mon, 15 Jul 2024 12:04:11 +0200 Subject: [PATCH 1/3] Replace set-output command with environment variable --- .github/workflows/update_datasets.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update_datasets.yml b/.github/workflows/update_datasets.yml index 77602a81..3597daf6 100644 --- a/.github/workflows/update_datasets.yml +++ b/.github/workflows/update_datasets.yml @@ -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 }} From 3429a979b7e0e9966b58c94308ba6a6b989be2ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20J=C3=A4hn?= Date: Mon, 15 Jul 2024 12:06:41 +0200 Subject: [PATCH 2/3] Change from daily to weekly --- .github/workflows/update_datasets.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_datasets.yml b/.github/workflows/update_datasets.yml index 3597daf6..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: From d2715e3ca5fb4018addc220f63d7b6d1ec52b0d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20J=C3=A4hn?= Date: Mon, 15 Jul 2024 12:08:19 +0200 Subject: [PATCH 3/3] Modify time stamp to trigger workflow --- docs/datasets/climate_model_data.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)