We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4b0b77 commit d9c404dCopy full SHA for d9c404d
1 file changed
.github/workflows/docker-image.yml
@@ -6,6 +6,11 @@ on:
6
repository_dispatch:
7
types: [publish_docker]
8
workflow_dispatch:
9
+ inputs:
10
+ version:
11
+ description: "Version tag to build (e.g., 9.2.0)"
12
+ required: true
13
+ type: string
14
15
jobs:
16
build:
@@ -14,9 +19,14 @@ jobs:
19
steps:
20
- uses: actions/checkout@v2
21
17
- - name: Extract version from payload
22
+ - name: Resolve version
18
23
id: get_version
- run: echo "version=${{ github.event.client_payload.version }}" >> $GITHUB_OUTPUT
24
+ env:
25
+ INPUT_VERSION: ${{ inputs.version }}
26
+ PAYLOAD_VERSION: ${{ github.event.client_payload.version }}
27
+ run: |
28
+ VERSION="${INPUT_VERSION:-${PAYLOAD_VERSION}}"
29
+ echo "version=${VERSION}" >> $GITHUB_OUTPUT
30
- name: Get Version For Release
31
id: get_version_release
32
uses: battila7/get-version-action@v2.2.1
0 commit comments