Skip to content

Commit 32e3bfb

Browse files
authored
ci: correctly compute version (#1391)
Compute version directly in the wokflow logig, without resorting to string manipulation in bash Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
1 parent 3093dba commit 32e3bfb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/docs-ci.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ jobs:
7979
- name: Compute docs version
8080
id: compute-version
8181
run: |
82-
version=$(${{ inputs.release-made }} && echo ${{ inputs.release-version }} || echo "snapshot")
83-
echo "version=$version" >> $GITHUB_OUTPUT
82+
echo "version=${{ inputs.release-made && inputs.release-version || 'snapshot' }}" >> "$GITHUB_OUTPUT"
8483
- uses: ./edgehog/.github/actions/doc-generate
8584
with:
8685
edgehog: edgehog

0 commit comments

Comments
 (0)