Skip to content

Commit 633bd2e

Browse files
committed
ci(release): allow workflow_dispatch source_ref for backfill builds
1 parent 26f0104 commit 633bd2e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release-desktop-multi-os.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
description: "Tag to build and upload (for example: v1.6.1)"
1111
required: true
1212
type: string
13+
source_ref:
14+
description: "Optional build source ref (branch/commit/tag). Defaults to the release tag when omitted."
15+
required: false
16+
type: string
1317

1418
permissions:
1519
contents: write
@@ -84,7 +88,7 @@ jobs:
8488
- name: Checkout repository
8589
uses: actions/checkout@v5
8690
with:
87-
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || github.ref }}
91+
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.source_ref != '' && github.event.inputs.source_ref || github.event_name == 'workflow_dispatch' && github.event.inputs.tag || github.ref }}
8892
fetch-depth: 0
8993
lfs: true
9094

0 commit comments

Comments
 (0)