diff --git a/.gitea/workflows/custom-release.yml b/.gitea/workflows/custom-release.yml index 8923eafea..a2339aafc 100644 --- a/.gitea/workflows/custom-release.yml +++ b/.gitea/workflows/custom-release.yml @@ -63,10 +63,6 @@ jobs: echo "DEVELOPER_ID_APPLICATION_P12_BASE64 secret is required" >&2 exit 1 fi - if [ -z "$DEVELOPER_ID_APPLICATION_P12_PASSWORD" ]; then - echo "DEVELOPER_ID_APPLICATION_P12_PASSWORD secret is required" >&2 - exit 1 - fi printf '%s' "$DEVELOPER_ID_APPLICATION_P12_BASE64" | base64 -D > "$certificate_path" security create-keychain -p "$keychain_password" "$keychain_path" diff --git a/scripts/tests/test-custom-release-macos-runner.bats b/scripts/tests/test-custom-release-macos-runner.bats index 56ecc4f3a..7f62a2f23 100644 --- a/scripts/tests/test-custom-release-macos-runner.bats +++ b/scripts/tests/test-custom-release-macos-runner.bats @@ -36,6 +36,9 @@ setup() { [ "$status" -eq 0 ] run rg -n 'DEVELOPER_ID_APPLICATION_P12_PASSWORD secret is required' "$WORKFLOW" + [ "$status" -ne 0 ] + + run rg -n 'security import .* -P "\$DEVELOPER_ID_APPLICATION_P12_PASSWORD"' "$WORKFLOW" [ "$status" -eq 0 ] run rg -n 'security create-keychain' "$WORKFLOW"