Skip to content

Commit

Permalink
Combine VERSION + VERSION_ALIASES
Browse files Browse the repository at this point in the history
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
  • Loading branch information
bact authored Sep 2, 2024
1 parent 4f1e3cd commit 154d92e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish_v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ jobs:
# Fallback for backward compatibility with old URLs before v3.0.1
working-directory: spdx-spec
run: |
ALL_VERSIONS=$(echo "$VERSION" "$VERSION_ALIASES")
MAP_PATH="etc/model-redirect-map.csv"
TEMPLATE_PATH="etc/model-redirect-template.html"
INDEX_HTML="index.html"
Expand All @@ -174,7 +175,7 @@ jobs:
IFS=$'\n'
for line in $maps; do
echo "$line" | IFS=',' read -r from to
for alias in $VERSION $VERSION_ALIASES; do
for alias in $ALL_VERSIONS; do
echo "Redirect: $alias/docs/model/$from -> $VERSION/docs/model/$to"
html=$(echo "$template" | sed -e "s/__VERSION__/$VERSION/g" -e "s/__THING__/$to/g")
mkdir -p "$alias/docs/model/$from"
Expand Down

0 comments on commit 154d92e

Please sign in to comment.