We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 12bed3e + c8ee991 commit 6012d00Copy full SHA for 6012d00
.github/workflows/merge-build-push.yml
@@ -90,6 +90,14 @@ jobs:
90
else
91
echo "WARNING: DETECTED_VERSION is empty. Skipping start_page update for $PLAYBOOK_FILE."
92
fi
93
+
94
+ # Add / support symbolic paths for the latest version + redirect:to
95
+ yq -i '.urls.latest_version_segment = "latest"' "$PLAYBOOK_FILE"
96
+ yq -i '.urls.latest_version_segment_strategy = "redirect:to"' "$PLAYBOOK_FILE"
97
98
+ echo "Set urls.latest_version_segment = latest"
99
+ echo "Set urls.latest_version_segment_strategy = redirect:to"
100
101
echo "Modified content of $PLAYBOOK_FILE:"
102
cat "$PLAYBOOK_FILE"
103
echo "--- Finished modification for $PLAYBOOK_FILE ---"
0 commit comments