Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 38 additions & 38 deletions .github/workflows/ci_pr.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
name: CI Pipeline for Pull Requests
# name: CI Pipeline for Pull Requests

on:
pull_request:
branches: ["main"]
# on:
# pull_request:
# branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# # Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
# # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
# permissions:
# contents: write

jobs:
# Auto-generate date job to update _config.yml
update-ci-last-modified-date:
name: Update ci_last_modified_date in _config
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
# jobs:
# # Auto-generate date job to update _config.yml
# update-ci-last-modified-date:
# name: Update ci_last_modified_date in _config
# 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: 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: 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 }}"
file_pattern: "_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 }}"
# file_pattern: "_config.yml"
3 changes: 1 addition & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,5 +204,4 @@ compress_html:
# envs: all
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-11-18" # automatically updated by GitHub Actions workflow ci_pr.yml. The format is 'YYYY-MM-DD'.
silence_deprecations: ["import"] # https://github.com/just-the-docs/just-the-docs/issues/1607
5 changes: 3 additions & 2 deletions _includes/footer_custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<p class="text-small text-grey-dk-100 mb-0">{{ site.footer_content }}</p>
{%- else -%}
{%- if page.created_date and page.created_date != '' -%}First created: {{ page.created_date | date: "%B %d, %Y" }} <br> {% endif -%}
Last updated: {{ page.last_modified_date | default: site.ci_last_modified_date | date: "%B %d, %Y"}}
Last updated: {{ site.time | date: "%Y-%m-%d"}}
<!-- Last updated: {{ page.last_modified_date | default: site.ci_last_modified_date | date: "%B %d, %Y"}}
{%- if site.workshop_series_name and site.workshop_series_name != '' -%}
<p class="text-small text-grey-dk-100 mb-0"> This workshop is part of the {{ site.workshop_series_name }}</p>
{%- endif -%}
Expand All @@ -26,7 +27,7 @@
{%- endif -%}
.
</p>
{%- endif -%}
{%- endif -%} -->
{%- if site.license_name and site.license_url and site.license_image_url -%}
<p><a target="_blank" rel="noopener noreferrer" href="{{ site.license_url }}"><img src="{{ site.license_image_url }}" alt="{{ site.license_name }} icon" style="height:2.5em;"></a></p>
{%- else -%}
Expand Down