Skip to content

Commit

Permalink
chore: optimized trigger condition
Browse files Browse the repository at this point in the history
  • Loading branch information
zakir-code authored and github-actions[bot] committed Mar 26, 2024
1 parent ce4e9fc commit 774dc67
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
tags:
- "v*.*.*"
pull_request:
paths:
- 'Dockerfile'
- '.github/workflows/docker.yml'

jobs:
build_and_push:
Expand Down Expand Up @@ -49,6 +53,6 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
push: true
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64, linux/arm64
tags: ${{ steps.meta.outputs.tags }}
1 change: 1 addition & 0 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
- 'go.mod'
- 'go.sum'
- '.golangci.yml'
- '.github/workflows/golang.yml'

permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint_shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
pull_request:
paths:
- '**.sh'
- '.github/workflows/lint_shell.yml'

permissions:
contents: read
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 1,3,5"
pull_request:
paths:
- '.github/workflows/nightly-tests.yml'

permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
paths:
- "proto/**"
- ".github/workflows/proto.yml"

permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- '**.go'
- 'go.mod'
- 'go.sum'
- '.github/workflows/security.yml'

jobs:
main:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/solidity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
pull_request:
paths:
- "solidity/**"
- ".github/workflows/solidity.yml"

permissions:
contents: read
Expand Down

0 comments on commit 774dc67

Please sign in to comment.