mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-27 23:16:31 +00:00
Fix RAUC certificate check (#2955)
Check the right environment variable when determining if RAUC certificates through secrets are provided.
This commit is contained in:
parent
26e96caef6
commit
20295a5f0b
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@ -166,7 +166,7 @@ jobs:
|
||||
RAUC_CERTIFICATE: ${{ secrets.RAUC_CERTIFICATE }}
|
||||
RAUC_PRIVATE_KEY: ${{ secrets.RAUC_PRIVATE_KEY }}
|
||||
run: |
|
||||
if [ -z "${RAUC_CERTIFICATE}" ] || [ -z "${RAUC_KEY}" ]; then
|
||||
if [ -z "${RAUC_CERTIFICATE}" ] || [ -z "${RAUC_PRIVATE_KEY}" ]; then
|
||||
echo "::warning:: RAUC certificate or key is missing. Building with a self-signed certificate!"
|
||||
else
|
||||
echo -e "-----BEGIN CERTIFICATE-----\n${RAUC_CERTIFICATE}\n-----END CERTIFICATE-----" > cert.pem
|
||||
|
Loading…
x
Reference in New Issue
Block a user