From f02d160be9de585aa491c9fc23a25a03b3975a47 Mon Sep 17 00:00:00 2001 From: kenlhlui <116421546+kenlhlui@users.noreply.github.com> Date: Wed, 10 Dec 2025 00:37:55 -0500 Subject: [PATCH 1/4] feat: replaced the Last updated date to use the built date, without needing to use github ci workflow to process it --- _config.yml | 1 - _layouts/minimal_search.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/_config.yml b/_config.yml index 18905fa..c07a023 100644 --- a/_config.yml +++ b/_config.yml @@ -206,4 +206,3 @@ compress_html: sass: quiet_deps: true # https://github.com/just-the-docs/just-the-docs/issues/1541 silence_deprecations: ["import"] # https://github.com/just-the-docs/just-the-docs/issues/1607 -ci_last_modified_date: "2025-12-05" diff --git a/_layouts/minimal_search.html b/_layouts/minimal_search.html index 1761307..536342f 100644 --- a/_layouts/minimal_search.html +++ b/_layouts/minimal_search.html @@ -768,7 +768,7 @@

📚 Learn@MDL

Browse and discover tutorials and workshops from the Map & Data Library, University of Toronto.

-

Last updated: {{ site.ci_last_modified_date | default: "N/A" }}

+

Last updated: {{ site.time | date: "%Y-%m-%d" | default: "N/A" }}

From 1b32403b7f674f347188fc4ff5980c809c0be009 Mon Sep 17 00:00:00 2001 From: kenlhlui <116421546+kenlhlui@users.noreply.github.com> Date: Wed, 10 Dec 2025 05:38:14 +0000 Subject: [PATCH 2/4] ci: Auto-update date to 2025-12-10 [skip ci] --- _config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/_config.yml b/_config.yml index c07a023..85fcd1e 100644 --- a/_config.yml +++ b/_config.yml @@ -206,3 +206,4 @@ compress_html: sass: quiet_deps: true # https://github.com/just-the-docs/just-the-docs/issues/1541 silence_deprecations: ["import"] # https://github.com/just-the-docs/just-the-docs/issues/1607 +ci_last_modified_date: "2025-12-10" From a92719a3642b6a5bf0f1ee19cec2443562e537bf Mon Sep 17 00:00:00 2001 From: kenlhlui <116421546+kenlhlui@users.noreply.github.com> Date: Wed, 10 Dec 2025 00:45:24 -0500 Subject: [PATCH 3/4] fix: put yamllint to the last --- .github/workflows/ci_pr.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci_pr.yml b/.github/workflows/ci_pr.yml index 285daba..802972d 100644 --- a/.github/workflows/ci_pr.yml +++ b/.github/workflows/ci_pr.yml @@ -12,22 +12,6 @@ permissions: contents: write jobs: - # YAML Lint job - runs after auto-gen-date - yamllint: - name: Lint YAML files - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v5 - with: - ref: ${{ github.head_ref }} - - - name: Install yamllint - run: python3 -m pip install yamllint - - - name: Lint YAML files - run: "yamllint -f github -d '{extends: default, rules: {line-length: disable}}' _data/guides.yml" - # Auto-generate date job to update _config.yml auto-gen-date: name: Update ci_last_modified_date @@ -58,4 +42,20 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v7 with: commit_message: "ci: Auto-update date to ${{ steps.set_date.outputs.date }} [skip ci]" - file_pattern: "_config.yml" \ No newline at end of file + file_pattern: "_config.yml" + + # YAML Lint job - runs after auto-gen-date + yamllint: + name: Lint YAML files + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v5 + with: + ref: ${{ github.head_ref }} + + - name: Install yamllint + run: python3 -m pip install yamllint + + - name: Lint YAML files + run: "yamllint -f github -d '{extends: default, rules: {line-length: disable}}' _data/guides.yml" \ No newline at end of file From 036c5f9c318b79d1ac7741bdbac45c0773205094 Mon Sep 17 00:00:00 2001 From: kenlhlui <116421546+kenlhlui@users.noreply.github.com> Date: Wed, 10 Dec 2025 00:46:15 -0500 Subject: [PATCH 4/4] feat: remove auto gen date job. --- .github/workflows/ci_pr.yml | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/.github/workflows/ci_pr.yml b/.github/workflows/ci_pr.yml index 802972d..a4c7c33 100644 --- a/.github/workflows/ci_pr.yml +++ b/.github/workflows/ci_pr.yml @@ -12,38 +12,6 @@ permissions: contents: write jobs: - # Auto-generate date job to update _config.yml - auto-gen-date: - name: Update ci_last_modified_date - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: Checkout - uses: actions/checkout@v5 - with: - ref: ${{ github.head_ref }} - persist-credentials: true - fetch-depth: 0 - - - name: Set date - id: set_date - run: | - date_value=$(date +'%Y-%m-%d') - echo "date_yyyy_mm_dd=$date_value" >> $GITHUB_ENV - echo "date=$date_value" >> $GITHUB_OUTPUT - - - name: Update _config.yml - uses: mikefarah/yq@master - with: - cmd: yq -i '.ci_last_modified_date = "${{ steps.set_date.outputs.date }}"' _config.yml - - - name: Commit and Push - uses: stefanzweifel/git-auto-commit-action@v7 - with: - commit_message: "ci: Auto-update date to ${{ steps.set_date.outputs.date }} [skip ci]" - file_pattern: "_config.yml" - # YAML Lint job - runs after auto-gen-date yamllint: name: Lint YAML files