diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 94aca32..6f3494f 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -100,14 +100,11 @@ jobs: uses: actions/checkout@v4 with: ref: manifest - - name: Update manifest if: github.event_name == 'push' - run: | - echo "Updating manifest" - wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq - chmod +x /usr/bin/yq - yq eval '.image.tag = "${{ steps.meta.outputs.tags }}"' -i values.yaml + uses: mikefarah/yq@master + with: + cmd: yq eval '.image.tag = "${{ steps.meta.outputs.tags }}"' -i values.yaml - name: Git Auto Commit uses: stefanzweifel/git-auto-commit-action@v5.0.1 with: diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ee4c4c8..8d26158 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -11,8 +11,14 @@ name: Java CI with Maven on: push: branches: [ "main" ] + paths: + - 'pom.xml' + - 'src/**' pull_request: branches: [ "main" ] + paths: + - 'pom.xml' + - 'src/**' jobs: build: @@ -34,5 +40,5 @@ jobs: # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive -# - name: Update dependency graph -# uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 + - name: Update dependency graph + uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6