ci: add path filters to Go build and include self-trigger for both workflows

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
KoheiYamashita 2026-02-24 19:09:13 +09:00
parent c267db36a6
commit b05225ff9b
2 changed files with 21 additions and 2 deletions

View file

@ -3,9 +3,13 @@ name: Android Build
on: on:
push: push:
branches: ["main"] branches: ["main"]
paths: ["android/**"] paths:
- "android/**"
- ".github/workflows/android-build.yml"
pull_request: pull_request:
paths: ["android/**"] paths:
- "android/**"
- ".github/workflows/android-build.yml"
workflow_dispatch: workflow_dispatch:
jobs: jobs:

View file

@ -3,6 +3,21 @@ name: build
on: on:
push: push:
branches: ["main"] branches: ["main"]
paths:
- "cmd/**"
- "pkg/**"
- "go.mod"
- "go.sum"
- "Makefile"
- ".github/workflows/build.yml"
pull_request:
paths:
- "cmd/**"
- "pkg/**"
- "go.mod"
- "go.sum"
- "Makefile"
- ".github/workflows/build.yml"
jobs: jobs:
build: build: