aboutsummaryrefslogtreecommitdiff
path: root/.builds
diff options
context:
space:
mode:
authorBradley Taunt <git@btxx.org>2026-04-09 08:46:14 -0400
committerBradley Taunt <git@btxx.org>2026-04-09 08:46:14 -0400
commitc9e4bd01a64dc99943dc3479858d0c0bd8063a27 (patch)
treed3036882e06035c45e79bf28eb8ab4b3068ca5fd /.builds
parent9dc45766dc3d9cf8fd077cc43bc36df06ebb5db1 (diff)
Restructure builds folder, minor link changes for HOF
Diffstat (limited to '.builds')
-rw-r--r--.builds/format.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.builds/format.yml b/.builds/format.yml
new file mode 100644
index 0000000..39cede9
--- /dev/null
+++ b/.builds/format.yml
@@ -0,0 +1,26 @@
+image: alpine/edge
+packages:
+ - yq
+ - git
+ - openssh
+secrets:
+ - 232c738f-79b2-4296-bd8e-e9eff01bae60
+sources:
+ - https://git.sr.ht/~bt/1mb-club
+submitter:
+ git.sr.ht:
+ enabled: true
+ allow-refs:
+ - refs/heads/master
+tasks:
+ - format-sites: |
+ cd 1mb-club
+ git checkout master
+ git log -1 --pretty=format:'%an' | grep -q "Formatting Bot" && exit 0
+ git config user.email "bot@1mb.club"
+ git config user.name "Formatting Bot"
+ git remote set-url origin git@git.sr.ht:~bt/1mb-club
+ ssh-keyscan git.sr.ht >> ~/.ssh/known_hosts
+ yq --inplace 'sort_by(.domain)' _data/sites.yml
+ sed -i '1!s/- domain:/\n- domain:/g' _data/sites.yml
+ git diff --quiet || (git commit -am "Fix formatting" && git push origin master) \ No newline at end of file