Skip to content

Commit 65b6a90

Browse files
committed
better handle errors
1 parent 30d5228 commit 65b6a90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/update.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
AUTORESTIC_RELEASE=$(curl -sX GET "https://api.github.com/repos/cupcakearmy/autorestic/releases/latest" \
6565
| jq -r '.tag_name' | sed 's|^v||')
6666
APP_VERSIONS="${RESTIC_RELEASE}-${AUTORESTIC_RELEASE}"
67-
if [ -z "${APP_VERSIONS}" ] || [ "${APP_VERSIONS}" = "null" ]; then
67+
if [ -z "${RESTIC_RELEASE}" ] || [ "${RESTIC_RELEASE}" = "null" ] || [ -z "${AUTORESTIC_RELEASE}" ] || [ "${AUTORESTIC_RELEASE}" = "null" ]; then
6868
echo "Unable to retrieve Restic/Autorestic versions. Skipping."
6969
echo "Unable to retrieve Restic/Autorestic versions. Skipping." >> $GITHUB_STEP_SUMMARY
7070
APP_VERSIONS=$(cat app_versions.txt)

0 commit comments

Comments
 (0)