2020-04-20 11:16:52 +02:00
|
|
|
#!/bin/sh
|
2020-04-20 11:28:13 +02:00
|
|
|
wget -q -O plenum.md "https://md.ccc-mannheim.de/9vP-toraQhOONftDOFuQtw/download"
|
2020-06-16 12:20:48 +02:00
|
|
|
wget -q -O p5/plenum.md "https://md.ccc-mannheim.de/oirNqftnSbK2esF9xFWvaw/download"
|
2020-05-25 23:21:47 +02:00
|
|
|
wget -q -O open_software.md "https://md.ccc-mannheim.de/-H4XaDXbTn-3q_ES2RTxDA/download"
|
2020-04-20 11:16:52 +02:00
|
|
|
|
2020-06-16 12:34:58 +02:00
|
|
|
if [[ ! -z "$(git status --porcelain --ignore-submodules -unormal)" ]]; then
|
|
|
|
echo "[bot] commit dirty changes"
|
2020-06-16 13:00:45 +02:00
|
|
|
git commit -m "bot update" -a
|
2020-06-16 12:34:58 +02:00
|
|
|
fi
|
2020-06-16 13:00:45 +02:00
|
|
|
if [[ "$(git rev-list --left-right --count HEAD...@'{u}' | cut -f2 )" != "0" ]]; then
|
|
|
|
echo "[bot] fetch current version"
|
|
|
|
git pull --rebase
|
|
|
|
fi
|
|
|
|
if [[ "$(git rev-list --left-right --count HEAD...@'{u}' | cut -f1 )" != "0" ]]; then
|
2020-06-16 12:34:58 +02:00
|
|
|
echo "[bot] push commits"
|
2020-04-22 17:05:18 +02:00
|
|
|
git remote | xargs -L1 git push --all
|
2020-04-20 11:16:52 +02:00
|
|
|
fi
|
|
|
|
|