Skip to content

Commit c99f0cb

Browse files
authored
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)
1 parent 5417afc commit c99f0cb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/publishing-your-site.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,17 @@ contents:
3535
runs-on: ubuntu-latest
3636
steps:
3737
- uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0
3840
- name: Configure Git Credentials
3941
run: |
4042
git config user.name github-actions[bot]
4143
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
42-
- uses: actions/setup-python@v4
44+
- uses: actions/setup-python@v5
4345
with:
4446
python-version: 3.x
4547
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV # (3)!
46-
- uses: actions/cache@v3
48+
- uses: actions/cache@v4
4749
with:
4850
key: mkdocs-material-${{ env.cache_id }}
4951
path: .cache

0 commit comments

Comments
 (0)