Update push-docker.yml

This commit is contained in:
Anthony Stirling 2023-01-29 18:41:33 +00:00 committed by GitHub
parent 0b09ef16b2
commit 1f1f50a615
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,12 +6,27 @@ on:
- master
- main
jobs:
build:
detectChangeType:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Has Changed
uses: YassinEldeeb/has-changed-path@v2.1
id: changed
with:
# Paths to detect changes
paths: build.gradle src/ Dockerfile
push:
runs-on: ubuntu-latest
if: steps.changed.outputs.changed == 'true'
steps:
- name: Set up JDK 17
uses: actions/setup-java@v3