From c99f0cb4c58f821b916b488d92902d2cbc5c223a Mon Sep 17 00:00:00 2001 From: Uwe Schmidt Date: Wed, 31 Jan 2024 16:08:26 +0100 Subject: [PATCH 1/2] Update GitHub Actions workflow Update action versions for 'setup-python' and 'cache'. Set 'fetch-depth: 0' for 'checkout' action to obtain correct document dates when using 'mkdocs-git-revision-date-localized-plugin' (cf. https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/blob/v1.2.2/mkdocs_git_revision_date_localized_plugin/ci.py#L37-L48) --- docs/publishing-your-site.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/publishing-your-site.md b/docs/publishing-your-site.md index c8293835d9d..8739974213b 100644 --- a/docs/publishing-your-site.md +++ b/docs/publishing-your-site.md @@ -35,15 +35,17 @@ contents: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Configure Git Credentials run: | git config user.name github-actions[bot] git config user.email 41898282+github-actions[bot]@users.noreply.github.com - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: 3.x - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV # (3)! - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: key: mkdocs-material-${{ env.cache_id }} path: .cache From dcb23d9a20f310ca16563b085da08636144244c6 Mon Sep 17 00:00:00 2001 From: Uwe Schmidt Date: Thu, 1 Feb 2024 12:24:20 +0100 Subject: [PATCH 2/2] Update publishing-your-site.md Remove fetch-depth for checkout action (revert) Also update Insiders workflow. --- docs/publishing-your-site.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/publishing-your-site.md b/docs/publishing-your-site.md index 8739974213b..53fda10c9d6 100644 --- a/docs/publishing-your-site.md +++ b/docs/publishing-your-site.md @@ -35,8 +35,6 @@ contents: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Configure Git Credentials run: | git config user.name github-actions[bot] @@ -100,11 +98,11 @@ contents: run: | git config user.name github-actions[bot] git config user.email 41898282+github-actions[bot]@users.noreply.github.com - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: 3.x - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: key: mkdocs-material-${{ env.cache_id }} path: .cache