Debian Codegraph @

.github/actions/get-prerelease/action.yml

raw symbols SCIP
1 name: Return a boolean indicating if the version contains prerelease identifiers
2
3 #
4 # Returns a simple true/false boolean indicating whether the version indicates it's a prerelease or not.
5 #
6 # TODO: Remove once the common repo is public.
7 #
8
9 inputs:
10 version:
11 required: true
12
13 outputs:
14 prerelease:
15 value: ${{ steps.get_prerelease.outputs.PRERELEASE }}
16
17 runs:
18 using: composite
19
20 steps:
21 - id: get_prerelease
22 shell: bash
23 run: |
24 if [[ "${VERSION}" == *"beta"* || "${VERSION}" == *"alpha"* ]]; then
25 echo "PRERELEASE=true" >> $GITHUB_OUTPUT
26 else
27 echo "PRERELEASE=false" >> $GITHUB_OUTPUT
28 fi
29 env:
30 VERSION: ${{ inputs.version }}