[GHA] Default to `release=unstable` in build workflow.
This commit is contained in:
parent
ce1826e538
commit
26acc9601c
|
@ -74,19 +74,17 @@ jobs:
|
||||||
id: release
|
id: release
|
||||||
run: |
|
run: |
|
||||||
if [[ '${{ github.event_name }}' == 'pull_request' ]]; then
|
if [[ '${{ github.event_name }}' == 'pull_request' ]]; then
|
||||||
if [[ '${{ github.base_ref }}' == 'master' ]]; then
|
if [[ '${{ github.base_ref }}' == 'v1.10' ]]; then
|
||||||
echo 'release=unstable' | tee -a $GITHUB_OUTPUT
|
|
||||||
elif [[ '${{ github.base_ref }}' == 'v1.10' ]]; then
|
|
||||||
echo 'release=release' | tee -a $GITHUB_OUTPUT
|
echo 'release=release' | tee -a $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
echo 'release=unstable' | tee -a $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
elif [[ '${{ github.event_name }}' == 'workflow_dispatch' ]]; then
|
elif [[ '${{ github.event_name }}' == 'workflow_dispatch' ]]; then
|
||||||
echo 'release=${{ inputs.release }}' | tee -a $GITHUB_OUTPUT
|
echo 'release=${{ inputs.release }}' | tee -a $GITHUB_OUTPUT
|
||||||
elif [[ '${{ github.ref }}' == 'refs/heads/master' ]]; then
|
|
||||||
echo 'release=unstable' | tee -a $GITHUB_OUTPUT
|
|
||||||
elif [[ '${{ github.ref }}' == 'refs/heads/v1.10' ]]; then
|
elif [[ '${{ github.ref }}' == 'refs/heads/v1.10' ]]; then
|
||||||
echo 'release=release' | tee -a $GITHUB_OUTPUT
|
echo 'release=release' | tee -a $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
exit 1
|
echo 'release=unstable' | tee -a $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
get-nonce:
|
get-nonce:
|
||||||
|
|
Loading…
Reference in New Issue