Skip to content

Commit 3d9e398

Browse files
committed
Update GitHub Actions workflow to specify branch triggers for push and pull request events. This change ensures that the workflow runs only for the specified branches: 1.7.x, 8.x, and 9.x.
1 parent cbf049c commit 3d9e398

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
name: Test Build
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- "1.7.x"
7+
- "8.x"
8+
- "9.x"
9+
pull_request:
10+
branches:
11+
- "1.7.x"
12+
- "8.x"
13+
- "9.x"
414
jobs:
515
build:
616
runs-on: ubuntu-latest
@@ -20,7 +30,7 @@ jobs:
2030
- name: Setup Hugo
2131
uses: peaceiris/actions-hugo@v2
2232
with:
23-
hugo-version: '0.121.1'
33+
hugo-version: "0.121.1"
2434
extended: true
2535

2636
- name: Find version from branch name (pull request)

0 commit comments

Comments
 (0)