Skip to content

Commit 5458ec8

Browse files
committed
fix: Allow to publish from reference branch
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
1 parent 86ef0bc commit 5458ec8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/publish_images.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
required: true
1212
default: ""
1313
type: string
14+
ref:
15+
description: 'Git ref to checkout (branch, tag, or SHA). Defaults to the triggering ref. Use to rebuild images from a different branch (e.g., master) when the release tag has a broken Dockerfile.'
16+
required: false
17+
type: string
1418
workflow_call: # Allows trigger of the workflow from another workflow
1519
inputs:
1620
custom_version: # Optional input for a custom version
@@ -36,6 +40,7 @@ jobs:
3640
steps:
3741
- uses: actions/checkout@v4
3842
with:
43+
ref: ${{ github.event.inputs.ref || github.ref }}
3944
submodules: 'true'
4045
- id: get-version
4146
uses: ./.github/actions/get-semantic-release-version

0 commit comments

Comments
 (0)