Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/merge-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,16 @@ jobs:
else
echo "WARNING: DETECTED_VERSION is empty. Skipping start_page update for $PLAYBOOK_FILE."
fi

# Add / support symbolic paths for the latest version + redirect:to
yq -i '.urls //= {}' "$PLAYBOOK_FILE" # If the urls key does not exist, first create an empty object.

yq -i '.urls.latest_version_segment = "latest"' "$PLAYBOOK_FILE"
yq -i '.urls.latest_version_segment_strategy = "redirect:to"' "$PLAYBOOK_FILE"

echo "Set urls.latest_version_segment = latest"
echo "Set urls.latest_version_segment_strategy = redirect:to"

echo "Modified content of $PLAYBOOK_FILE:"
cat "$PLAYBOOK_FILE"
echo "--- Finished modification for $PLAYBOOK_FILE ---"
Expand Down