diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8f444b278..bf02501d1 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -4,6 +4,10 @@ on: push: tags: - "v*.*.*" + pull_request: + paths: + - 'Dockerfile' + - '.github/workflows/docker.yml' jobs: build_and_push: @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/golang.yml b/.github/workflows/golang.yml index 7cb64d867..bf55bb7bc 100644 --- a/.github/workflows/golang.yml +++ b/.github/workflows/golang.yml @@ -15,6 +15,7 @@ on: - 'go.mod' - 'go.sum' - '.golangci.yml' + - '.github/workflows/golang.yml' permissions: contents: read diff --git a/.github/workflows/lint_shell.yml b/.github/workflows/lint_shell.yml index 31adb1677..f25edab29 100644 --- a/.github/workflows/lint_shell.yml +++ b/.github/workflows/lint_shell.yml @@ -9,6 +9,7 @@ on: pull_request: paths: - '**.sh' + - '.github/workflows/lint_shell.yml' permissions: contents: read diff --git a/.github/workflows/nightly-tests.yml b/.github/workflows/nightly-tests.yml index 951396c28..7bce8668a 100644 --- a/.github/workflows/nightly-tests.yml +++ b/.github/workflows/nightly-tests.yml @@ -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 diff --git a/.github/workflows/proto.yml b/.github/workflows/proto.yml index 5d02be500..ada387ef2 100644 --- a/.github/workflows/proto.yml +++ b/.github/workflows/proto.yml @@ -4,6 +4,7 @@ on: pull_request: paths: - "proto/**" + - ".github/workflows/proto.yml" permissions: contents: read diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index b7b9eb235..f6240d2cf 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -13,6 +13,7 @@ on: - '**.go' - 'go.mod' - 'go.sum' + - '.github/workflows/security.yml' jobs: main: diff --git a/.github/workflows/solidity.yml b/.github/workflows/solidity.yml index 4d9a88c28..3aa1fd3f2 100644 --- a/.github/workflows/solidity.yml +++ b/.github/workflows/solidity.yml @@ -9,6 +9,7 @@ on: pull_request: paths: - "solidity/**" + - ".github/workflows/solidity.yml" permissions: contents: read