Skip to content

Commit b5902e6

Browse files
committed
Tooling: Use correct go version syntax
Run action automatically on PRs against main
1 parent 95f50da commit b5902e6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/hugo-build-test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Hugo Build Test
22

33
on:
4-
workflow_dispatch:
4+
pull_request:
5+
branches:
6+
- main
7+
workflow_dispatch:
58

69
jobs:
710
build:
@@ -18,7 +21,7 @@ jobs:
1821
- name: Setup Go
1922
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
2023
with:
21-
go-version: 'latest'
24+
go-version: '>=1.23'
2225

2326
- name: Setup Hugo
2427
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0

0 commit comments

Comments
 (0)