Skip to content

Commit 23a79aa

Browse files
jjasgharjerdog
andauthored
Change fetch depth to 1 (#15153)
* Change fetch depth to 1 It looks like 0 is too...aggressive. * Update Node and Action versions Upgrades Node.js ver to 22 (v16 was EOL Aug2023) Updates GitHub actions/checkout version to v4 * update action versions --------- Co-authored-by: Jeremy Meiss <[email protected]>
1 parent 1c807bd commit 23a79aa

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/hugo.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: test hugo
33
on: [pull_request]
44

55
env:
6-
NODE_VERSION: 16
6+
NODE_VERSION: 22
77
HUGO_VERSION: 0.126.1
88

99
jobs:
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Lint Filenames
1818
uses: julie-ng/lowercase-linter@v1
@@ -27,10 +27,10 @@ jobs:
2727
name: Build hugo on Linux
2828
runs-on: ubuntu-latest
2929
steps:
30-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
3131
with:
3232
submodules: true # Fetch Hugo themes (true OR recursive)
33-
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
33+
fetch-depth: 1 # Fetch recent history for .GitInfo and .Lastmod at level 1
3434

3535
- name: Setup Hugo
3636
uses: peaceiris/actions-hugo@v3

.github/workflows/large-files.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818

@@ -32,11 +32,11 @@ jobs:
3232
fi
3333
done
3434
echo "HAS_LARGE_FILE=${has_large_file}" >> $GITHUB_ENV
35-
35+
3636
- name: Comment on PR
3737
id: comment
3838
if: ${{ env.HAS_LARGE_FILE == 'true' }}
3939
uses: thollander/actions-comment-pull-request@v2
4040
with:
4141
message: |
42-
:warning: Warning: This PR contains a PDF or large file(s). In most cases, you should use the [asset repository](https://github.com/devopsdays/devopsdays-assets/)
42+
:warning: Warning: This PR contains a PDF or large file(s). In most cases, you should use the [asset repository](https://github.com/devopsdays/devopsdays-assets/)

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Comment on PR
3636
id: comment
3737
if: failure() && steps.prcheck.outcome == 'failure'
38-
uses: thollander/actions-comment-pull-request@v2
38+
uses: thollander/actions-comment-pull-request@v3
3939
with:
4040
message: |
4141
`en_US`: Hi @${{ github.event.pull_request.user.login }}! It looks like you've left the default text in the pull request description. Please replace that text with something meaningful. Thanks!

0 commit comments

Comments
 (0)