From d536df84b3b952017d320882101d78a610c66b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20J=C3=A4hn?= Date: Mon, 15 Jul 2024 15:07:52 +0200 Subject: [PATCH 1/4] debug --- .github/workflows/update_datasets.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/update_datasets.yml b/.github/workflows/update_datasets.yml index 13384d89..759450d5 100644 --- a/.github/workflows/update_datasets.yml +++ b/.github/workflows/update_datasets.yml @@ -29,11 +29,13 @@ jobs: id: git-check run: | git diff + echo "git diff done" if ! git diff --quiet; then echo "Changes detected" echo "changes_detected=true" >> "$GITHUB_ENV" else echo "changes_detected=false" >> "$GITHUB_ENV" + echo "check done" - name: Commit changes if: env.changes_detected == 'true' From 78feec60caf06d1a3c4ef1f81eb8326b4e383405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20J=C3=A4hn?= Date: Mon, 15 Jul 2024 15:09:50 +0200 Subject: [PATCH 2/4] debug --- .github/workflows/update_datasets.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update_datasets.yml b/.github/workflows/update_datasets.yml index 759450d5..4d7dd335 100644 --- a/.github/workflows/update_datasets.yml +++ b/.github/workflows/update_datasets.yml @@ -35,6 +35,7 @@ jobs: echo "changes_detected=true" >> "$GITHUB_ENV" else echo "changes_detected=false" >> "$GITHUB_ENV" + fi echo "check done" - name: Commit changes From 5f594449a24e620f49c114503b8fbf52f24a2595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20J=C3=A4hn?= Date: Mon, 15 Jul 2024 15:15:17 +0200 Subject: [PATCH 3/4] Remove installing GitHub CLI --- .github/workflows/update_datasets.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/update_datasets.yml b/.github/workflows/update_datasets.yml index 4d7dd335..f52135d2 100644 --- a/.github/workflows/update_datasets.yml +++ b/.github/workflows/update_datasets.yml @@ -57,21 +57,8 @@ jobs: branch: "update-datasets-${{ github.run_number }}" delete-branch: true - - name: Install GitHub CLI - run: | - if ! command -v gh &> /dev/null - then - echo "GitHub CLI not found, installing..." - curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg - echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null - sudo apt update - sudo apt install gh -y - else - echo "GitHub CLI is already installed." - fi - - name: Enable Auto-Merge for the PR - if: steps.git-check.outputs.changes_detected == 'true' + if: env.changes_detected == 'true' run: | PR_NUMBER=$(echo ${{ steps.create-pr.outputs.pull-request-number }}) gh pr merge $PR_NUMBER --auto --squash From 6c832a5e2193f6b30f381a28c798c106b72311f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20J=C3=A4hn?= Date: Mon, 15 Jul 2024 15:15:56 +0200 Subject: [PATCH 4/4] GitHub Action: Update datasets (#175) Co-authored-by: github-actions[bot] --- 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 ac557d6c..81580abd 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:45" } +- Size: 200.62 TB :material-information-outline:{ title="last updated: 2024-07-15 11:26:46" } - Number of files: 663,800 :material-information-outline:{ title="last updated: 2024-07-15 11:26:46" } - Access: direct / rsync - Status: frozen (2019-03)