mirror of
https://github.com/yairm210/Unciv.git
synced 2025-08-03 20:48:49 -04:00
Fix GH wiki repository link translation. (#6043)
This commit is contained in:
parent
b69507255f
commit
95545ba186
2
.github/workflows/uncivbot.yml
vendored
2
.github/workflows/uncivbot.yml
vendored
@ -84,7 +84,7 @@ jobs:
|
||||
# Convert AS/GH code browser inter-page links to GH Wiki links by stripping `.md` extensions.
|
||||
sed -ie 's|\(](\./[^)]*\)\.md|\1|g' "$f"
|
||||
# Convert AS/GH code browser repo file links to GH Wiki links by prepending repo browser to absolute links.
|
||||
sed -ie 's|](/|](https://github.com/${GITHUB_REPOSITORY}/tree/master/|g' "$f"
|
||||
sed -ie 's|](/|](https://github.com/'"${GITHUB_REPOSITORY}"'/tree/master/|g' "$f"
|
||||
else # When glob produces no matches, you just get the glob pattern instead.
|
||||
ghStatus "Skipping non-existent file $f."
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user