diff options
author | 2024-08-11 13:34:24 -0700 | |
---|---|---|
committer | 2024-08-11 13:34:24 -0700 | |
commit | 44eb7aba6a10964cbfcc9735e1a7a0e6d959ba87 (patch) | |
tree | 205486bbeb82e4889a27959167192d2ff3bca58b | |
parent | 7758d903c27f5cdaadaa24f8ed1965b7a6590df8 (diff) | |
download | ibd-trader-44eb7aba6a10964cbfcc9735e1a7a0e6d959ba87.tar.gz ibd-trader-44eb7aba6a10964cbfcc9735e1a7a0e6d959ba87.tar.zst ibd-trader-44eb7aba6a10964cbfcc9735e1a7a0e6d959ba87.zip |
Restrict actions to run only on path changes
-rw-r--r-- | .github/workflows/buf-ci.yaml | 2 | ||||
-rw-r--r-- | .github/workflows/docker.yaml | 2 | ||||
-rw-r--r-- | .github/workflows/go.yaml | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/buf-ci.yaml b/.github/workflows/buf-ci.yaml index 803d9cf..caf5c50 100644 --- a/.github/workflows/buf-ci.yaml +++ b/.github/workflows/buf-ci.yaml @@ -2,8 +2,10 @@ name: Buf CI on: push: + paths: [ api/**/* ] pull_request: types: [opened, synchronize, reopened, labeled, unlabeled] + paths: [ api/**/* ] delete: permissions: diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 6249b83..b60399e 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -5,10 +5,12 @@ on: # - cron: '45 13 * * *' push: branches: [ "main" ] + paths: [ backend/**/* ] # Publish semver tags as releases. tags: [ 'v*.*.*' ] pull_request: branches: [ "main" ] + paths: [ backend/**/* ] env: # Use docker.io for Docker Hub if empty diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index c4e2b77..984b630 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -3,8 +3,10 @@ name: Go on: push: branches: [ "main" ] + paths: [ backend/**/* ] pull_request: branches: [ "main" ] + paths: [ backend/**/* ] permissions: contents: read |