FIX: workflow publish on non default branches

This commit is contained in:
2025-11-28 18:23:26 +01:00
parent 64002194f5
commit b8b2c6b3ac

View File

@@ -98,7 +98,7 @@ jobs:
- name: Login to GitHub Container Registry
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
if: github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
@@ -106,7 +106,7 @@ jobs:
- name: Push To GHCR
uses: redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2
if: github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
if: github.event_name != 'pull_request'
id: push
env:
REGISTRY_USER: ${{ github.actor }}