Skip to content

Commit debc392

Browse files
authored
Update secondary_flow.yaml
favico
1 parent ddf496d commit debc392

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/secondary_flow.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,29 @@ jobs:
2222
- name: Kopier fil til det bestemte sted
2323
run: mv logotest.svg assets/images/library-logo.svg
2424

25+
- name: Hent favicons fra R-intro (gh-pages) og kopier til favicons/lc
26+
run: |
27+
set -e
28+
TMPDIR="$(mktemp -d)"
29+
git clone --depth=1 --branch gh-pages https://github.com/KUBDatalab/R-intro "$TMPDIR"
30+
31+
if [ -d "$TMPDIR/fig/favico" ]; then
32+
SRC_DIR="$TMPDIR/fig/favico"
33+
elif [ -d "$TMPDIR/fig/favicon" ]; then
34+
SRC_DIR="$TMPDIR/fig/favicon"
35+
else
36+
echo "Ingen fig/favico eller fig/favicon på gh-pages" >&2
37+
find "$TMPDIR" -maxdepth 2 -type d >&2
38+
exit 1
39+
fi
40+
41+
mkdir -p favicons/lc
42+
# Hvis du vil starte rent hver gang, så fjern kommentaren på næste linje:
43+
# rm -rf favicons/lc/*
44+
45+
# Kopiér alt indhold; overskriver filer med samme navn i mål
46+
cp -a "$SRC_DIR/." favicons/lc/
47+
2548
- name: Commit og push ændringer
2649
run: |
2750
git config user.name "GitHub Actions"

0 commit comments

Comments
 (0)