Skip to content

Commit

Permalink
Use branch reference. (adoptium#3273)
Browse files Browse the repository at this point in the history
  • Loading branch information
steelhead31 authored Dec 1, 2023
1 parent 58d3800 commit 9f6e775
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9f6e775

Please sign in to comment.