mirror of
https://github.com/TeachBooks/template.git
synced 2026-11-13 06:35:52 +00:00
Correct aliasing
This commit is contained in:
parent
70b333585e
commit
67659646d1
1 changed files with 4 additions and 3 deletions
7
.github/workflows/deploy-book-ghpages.yml
vendored
7
.github/workflows/deploy-book-ghpages.yml
vendored
|
|
@ -141,11 +141,11 @@ jobs:
|
||||||
|
|
||||||
- name: Symlink branch aliases
|
- name: Symlink branch aliases
|
||||||
run: |
|
run: |
|
||||||
echo $BRANCH_ALIASES | tr ' ' '\n' | { grep -E '\S' | :; } |
|
echo $BRANCH_ALIASES | tr ' ' '\n' | grep -E '\S' |
|
||||||
while IFS=':' read -r key value; do
|
while IFS=':' read -r key value; do
|
||||||
# If the target branch is to be deployed, make symlink to it.
|
# 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
|
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
|
ln -s $value final/$key
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
@ -163,4 +163,5 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
pages: write
|
pages: write
|
||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue