Skip to content

Commit 210417e

Browse files
committed
fix: schedule workflow maybe2
1 parent 27b12a5 commit 210417e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/scheduled.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,14 @@ jobs:
168168
# convert to string
169169
platformsOutput="{\"platforms\": \"[$platformsArr]\"}"
170170
171+
# Convert NONE placeholder back to empty string for patch
172+
if [ "$SOURCE_PATCH" == "NONE" ]; then
173+
SOURCE_PATCH=""
174+
fi
175+
171176
CONFIGS+=$(echo "$(yq -r -o=json ".[${LINE}]" "$CONFIG_FILE" | jq --argjson plat "$platformsOutput" --arg commit "$COMMIT_HASH_FULL" --arg patch "$SOURCE_PATCH" '. + $plat + {source_commit: $commit, source_patch: $patch}'),")
172177
fi
173-
done < <(yq -r 'to_entries | map_values({"value":.value, "index":.key}) | .[] | [.index, .value.source.repository, .value.source.ref, .value.source.patch // "", .value.target.repository, .value.target.tag] | @tsv' "$CONFIG_FILE")
178+
done < <(yq -r 'to_entries | map_values({"value":.value, "index":.key}) | .[] | [.index, .value.source.repository, .value.source.ref, .value.source.patch // "NONE", .value.target.repository, .value.target.tag] | @tsv' "$CONFIG_FILE")
174179
175180
# Remove trailing commas and close JSON arrays
176181
CONFIGS="${CONFIGS%,}]"

0 commit comments

Comments
 (0)