Correct aliasing

This commit is contained in:
Severin 2024-04-03 15:46:47 +02:00
parent 70b333585e
commit 67659646d1

View file

@ -141,11 +141,11 @@ jobs:
- name: Symlink branch aliases
run: |
echo $BRANCH_ALIASES | tr ' ' '\n' | { grep -E '\S' | :; } |
echo $BRANCH_ALIASES | tr ' ' '\n' | grep -E '\S' |
while IFS=':' read -r key value; do
# If the target branch is to be deployed, make symlink to it.
if [ "$BRANCHES_TO_DEPLOY" == "*" ] || echo $BRANCHES_TO_DEPLOY | tr ' ' '\n' | grep "^$value$"; then
echo link $key -> $value
echo link $key "->" $value
ln -s $value final/$key
fi
done
@ -163,4 +163,5 @@ jobs:
permissions:
contents: read
pages: write
id-token: write
id-token: write