Skip to content

Commit

Permalink
Merge pull request #1135 from gettakaro/only-commit-generated-api-cli…
Browse files Browse the repository at this point in the history
…ent-on-develop-branch
  • Loading branch information
niekcandaele authored Aug 19, 2024
2 parents 74864b1 + 4b47f50 commit 938ff2b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Github Container Registry
if: ${{ !startsWith(github.actor, 'renovate') }}
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand All @@ -78,7 +77,7 @@ jobs:
cache-to: type=inline
sbom: true
file: ${{ matrix.package.dockerfile }}
push: ${{ !startsWith(github.actor, 'renovate') }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
Expand Down Expand Up @@ -129,7 +128,7 @@ jobs:
GRAFANA_CLOUD_API_KEY: ${{ secrets.GRAFANA_CLOUD_API_KEY }}

- name: Commit and push if changed
if: github.event_name == 'push' && !contains(github.ref, 'refs/heads/main') && !contains(github.ref, 'refs/heads/development')
if: github.event_name == 'push' && contains(github.ref, 'refs/heads/development')
run: |
if git diff --quiet; then
echo "No changes to commit."
Expand Down

0 comments on commit 938ff2b

Please sign in to comment.