Skip to content

Commit 6b851ea

Browse files
committed
Push docker & unstable release when running on a hotfix branch
1 parent 948db4f commit 6b851ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ jobs:
259259
packages: write
260260

261261
env:
262-
PUSH_PACKAGES: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
262+
PUSH_PACKAGES: ${{ github.ref == 'refs/heads/main' || startsWith('refs/heads/hotfix', github.ref) }}
263263
REGISTRY: ghcr.io
264264
IMAGE_NAME: ${{ github.repository_owner }}/${{ matrix.project }}
265265
DOCKER_FILE: ./${{ matrix.project }}/Dockerfile.ci
@@ -301,6 +301,7 @@ jobs:
301301
tags: ${{ steps.meta.outputs.tags }}
302302

303303
unstable-release:
304+
if: github.ref == 'refs/heads/main' || startsWith('refs/heads/hotfix', github.ref)
304305
runs-on: ubuntu-22.04
305306
needs:
306307
- build
@@ -327,7 +328,6 @@ jobs:
327328
path: ./build
328329

329330
- name: Update unstable release
330-
if: github.ref == 'refs/heads/main'
331331
uses: marvinpinto/action-automatic-releases@latest
332332
with:
333333
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)