From 9f6e77549a67031bea07efae3030942729baa186 Mon Sep 17 00:00:00 2001 From: Scott Fryer <60462088+steelhead31@users.noreply.github.com> Date: Fri, 1 Dec 2023 11:44:15 +0000 Subject: [PATCH] Use branch reference. (#3273) --- .github/workflows/build.yml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30fb20b6ef..59c4141d1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,21 +20,6 @@ permissions: contents: read jobs: - debug-pr-status: - name: Input check - runs-on: ubuntu-latest - steps: - - - name: Checking your input - run: | - echo "github.event.pull_request.merged : $MERGED_RAW" - echo "github.event.pull_request.merged == 'true' : $MERGED_TRUE_STR" - echo "github.event.pull_request.merged == true : $MERGED_TRUE_BOOL" - env: - MERGED_RAW: ${{ github.event.pull_request.merged }} - MERGED_TRUE_STR: ${{ github.event.pull_request.merged == 'true' }} - MERGED_TRUE_BOOL: ${{ github.event.pull_request.merged == true }} - build-and-push-centos6: name: Centos6 runs-on: ubuntu-latest @@ -50,7 +35,8 @@ jobs: with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - if: github.event.pull_request.merged + if: github.ref == 'refs/heads/master' + - name: Docker Build CentOS6 Image Test uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a # v2.10.0 @@ -72,7 +58,7 @@ jobs: cache-from: type=registry,ref=adoptopenjdk/centos6_build_image:latest cache-to: type=inline push: true - if: github.event.pull_request.merged + if: github.ref == 'refs/heads/master' build-and-push-alpine3: name: Alpine3