We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a07c47 commit 869cb58Copy full SHA for 869cb58
.github/workflows/merge-build-push.yml
@@ -91,6 +91,16 @@ jobs:
91
else
92
echo "WARNING: DETECTED_VERSION is empty. Skipping start_page update for $PLAYBOOK_FILE."
93
fi
94
+
95
+ # Add / support symbolic paths for the latest version + redirect:to
96
+ yq -i '.urls //= {}' "$PLAYBOOK_FILE" # If the urls key does not exist, first create an empty object.
97
98
+ yq -i '.urls.latest_version_segment = "latest"' "$PLAYBOOK_FILE"
99
+ yq -i '.urls.latest_version_segment_strategy = "redirect:to"' "$PLAYBOOK_FILE"
100
101
+ echo "Set urls.latest_version_segment = latest"
102
+ echo "Set urls.latest_version_segment_strategy = redirect:to"
103
104
echo "Modified content of $PLAYBOOK_FILE:"
105
cat "$PLAYBOOK_FILE"
106
echo "--- Finished modification for $PLAYBOOK_FILE ---"
0 commit comments