diff --git a/.github/workflows/update_datasets.yml b/.github/workflows/update_datasets.yml index 13384d89..f52135d2 100644 --- a/.github/workflows/update_datasets.yml +++ b/.github/workflows/update_datasets.yml @@ -29,11 +29,14 @@ 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" + fi + echo "check done" - name: Commit changes if: env.changes_detected == 'true' @@ -54,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 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)