File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments