diff --git a/.github/workflows/build-and-sign-image.yml b/.github/workflows/build-and-sign-image.yml index ab32b5f..d06319a 100644 --- a/.github/workflows/build-and-sign-image.yml +++ b/.github/workflows/build-and-sign-image.yml @@ -9,16 +9,13 @@ on: branches: - "main" -# push: -# branches: -# - "trigger-image-build-and-push-1" - env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} jobs: build_and_sign_image: + if: ${{ github.event.pull_request.merged }} runs-on: ubuntu-latest permissions: contents: read diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ddfa654..32bd8bc 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -6,8 +6,6 @@ name: Go on: push: branches: [ "main", "*" ] - pull_request: - branches: [ "main" ] jobs: