Skip to content

Commit 7bf57c8

Browse files
authored
Update mod-update.yml
1 parent dd8cbf1 commit 7bf57c8

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/mod-update.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Update Hugo dependencies
22
on:
3-
workflow_dispatch:
3+
workflow_dispatch: # Manual trigger
44
schedule:
5-
- cron: '0 3 * ' # run daily at 03:00 AM
5+
- cron: '0 3 * * *' # Run daily at 03:00 AM UTC
66
permissions:
77
contents: write
88
pull-requests: write
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
node-version: lts/*
1919
cache: 'npm'
20-
cache-dependency-path: '/package-lock.json'
20+
cache-dependency-path: 'package-lock.json'
2121
- name: Perform clean install of npm
2222
run: npm ci
2323
- name: Update Hugo module dependencies
@@ -26,11 +26,11 @@ jobs:
2626
MOD_OUTPUT=$(npm run mod:update 2>&1)
2727
echo "$MOD_OUTPUT"
2828
MOD_UPDATES=$(echo "$MOD_OUTPUT" | grep '^go: upgraded' | sed 's/go: / - /' | sort -u)
29-
echo 'MOD_UPDATES<<EOF' >> $GITHUB_OUTPUT
29+
echo "MOD_UPDATES<<EOF" >> $GITHUB_OUTPUT
3030
echo "$MOD_UPDATES" >> "$GITHUB_OUTPUT"
31-
echo 'EOF' >> $GITHUB_OUTPUT
31+
echo "EOF" >> "$GITHUB_OUTPUT"
3232
- name: Create Pull Request
33-
uses: gethinode/create-pull-request@v7
33+
uses: peter-evans/create-pull-request@v7
3434
with:
3535
token: ${{ secrets.HUGO_MOD_PR }}
3636
commit-message: 'fix: update Hugo module dependencies'
@@ -40,14 +40,10 @@ jobs:
4040
title: 'Update Hugo module dependencies'
4141
body: |
4242
This PR is auto-generated by [create-pull-request][1].
43-
4443
Changes to go.mod:
45-
4644
${{ steps.mod-updates.outputs.MOD_UPDATES }}
4745
[1]: https://github.com/peter-evans/create-pull-request
4846
labels: dependencies
49-
# Note: remove /go.mod and /go.sum if your repository does not have an exampleSite
50-
# or any other subfolder that uses Hugo modules
5147
add-paths: |
5248
go.mod
5349
go.sum

0 commit comments

Comments
 (0)