Skip to content

Commit 161cdd5

Browse files
authored
ci: pushトリガーをmainブランチに限定 (#1258)
対象のworkflowは今までフォークリポジトリ上でも無条件で動いてしまってお り、リソースを圧迫していた。フォーク上で動かす必要は無い認識。 本当は(もうすぐ丸三年前になる)#382 をやりたいが、とりあえず`push`トリ ガーの削減だけ自明なので行っておく。
1 parent fee5996 commit 161cdd5

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

.github/workflows/build_and_deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ on:
1616
- published
1717
pull_request:
1818
push:
19+
branches:
20+
- main
1921

2022
env:
2123
# releaseタグ名か、workflow_dispatchでのバージョン名か、'0.0.0'が入る

.github/workflows/check-shebangs-and-filemodes.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Check shebangs and filemodes
33

44
on:
55
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
69

710
jobs:
811
check:

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: test workflow
22

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
68
workflow_dispatch:
79

.github/workflows/typos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Check typos
22

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
68
branches:
79
- "**"

0 commit comments

Comments
 (0)