We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 107ba4a commit c8ee991Copy full SHA for c8ee991
.github/workflows/merge-build-push.yml
@@ -82,6 +82,14 @@ jobs:
82
else
83
echo "WARNING: DETECTED_VERSION is empty. Skipping start_page update for $PLAYBOOK_FILE."
84
fi
85
+
86
+ # Add / support symbolic paths for the latest version + redirect:to
87
+ yq -i '.urls.latest_version_segment = "latest"' "$PLAYBOOK_FILE"
88
+ yq -i '.urls.latest_version_segment_strategy = "redirect:to"' "$PLAYBOOK_FILE"
89
90
+ echo "Set urls.latest_version_segment = latest"
91
+ echo "Set urls.latest_version_segment_strategy = redirect:to"
92
93
echo "Modified content of $PLAYBOOK_FILE:"
94
cat "$PLAYBOOK_FILE"
95
echo "--- Finished modification for $PLAYBOOK_FILE ---"
0 commit comments