mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 15:23:01 +01:00
Don't sign if not set manually
This commit is contained in:
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@@ -22,6 +22,7 @@ on:
|
|||||||
description: Sign binaries
|
description: Sign binaries
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
|
- 'no'
|
||||||
- test-signing
|
- test-signing
|
||||||
- release-signing
|
- release-signing
|
||||||
default: test-signing
|
default: test-signing
|
||||||
@@ -95,16 +96,18 @@ jobs:
|
|||||||
- name: Sign
|
- name: Sign
|
||||||
id: sign
|
id: sign
|
||||||
run: |
|
run: |
|
||||||
echo "sign=${{ env.SIGNPATH_API_TOKEN != '' && (needs.build_variables.outputs.push || startsWith(github.ref, 'refs/tags/v')) }}"
|
sign=${{ env.SIGNPATH_API_TOKEN != '' && github.event.inputs.sign != 'no' && (needs.build_variables.outputs.push || startsWith(github.ref, 'refs/tags/v')) }}
|
||||||
# if using workflow_dispatch, use the provided certificate
|
# if using workflow_dispatch, use the provided certificate
|
||||||
if [[ "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]]; then
|
if [[ "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]]; then
|
||||||
certificate=${{ github.event.inputs.sign }}
|
certificate=${{ github.event.inputs.sign }}
|
||||||
else
|
else
|
||||||
# Default to test-signing
|
# Default to no signing
|
||||||
certificate=test-signing
|
certificate=no
|
||||||
|
sign=false
|
||||||
fi
|
fi
|
||||||
|
echo "sign=$sign"
|
||||||
echo "certificate=$certificate"
|
echo "certificate=$certificate"
|
||||||
echo "sign=${{ env.SIGNPATH_API_TOKEN != '' && (needs.build_variables.outputs.push || startsWith(github.ref, 'refs/tags/v')) }}" >> $GITHUB_OUTPUT
|
echo "sign=$sign" >> $GITHUB_OUTPUT
|
||||||
echo "certificate=$certificate" >> $GITHUB_OUTPUT
|
echo "certificate=$certificate" >> $GITHUB_OUTPUT
|
||||||
lint-commit:
|
lint-commit:
|
||||||
name: Lint Commit Message
|
name: Lint Commit Message
|
||||||
|
|||||||
Reference in New Issue
Block a user