-
Notifications
You must be signed in to change notification settings - Fork 0
/
.build.yml
30 lines (27 loc) · 1.11 KB
/
.build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
image: archlinux
sources:
- https://git.sr.ht/~tcarrio/git-mirror
- https://git.sr.ht/~tim-clifford/pixel-prime
environment:
GIT_TARGET_REPO: [email protected]:tim-clifford/pixel-prime.git
secrets:
- 9ee7c8f6-f330-46d7-8339-574c3d774548
tasks:
- add-warning: |
cd pixel-prime
git checkout master
# fuck all this so much
warning="
| :exclamation: | This is a mirror of [https://git.sr.ht/~tim-clifford/pixel-prime](https://git.sr.ht/~tim-clifford/pixel-prime). Please refrain from using GitHub's issue and PR system. |
|----------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------|
"
if test -f README.md; then
echo "$warning" | cat - README.md > README2.md # save it, I literally do not care
else
echo "$warning" > README2.md
fi
# fuck all this redirection shit
mv README2.md README.md
git add README.md
git commit -m "[builds.sr.ht] Add mirror warning to README.md"
- mirror: git-mirror/git-mirror.sh pixel-prime