Add sanity check for funding / generator cmd for funding file

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-04-21 19:55:38 +02:00
parent 9273ab56a8
commit 415dc61d07
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,8 @@
function sanity_has_funding() {
[[ -f .github/FUNDING.yml ]] || {
report warn "No FUNDING.yml config found"
return 0
}
report success "FUNDING.yml found"
}

11
bin/ghfund Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
set -euo pipefail
mkdir -p .github
cat -s >.github/FUNDING.yml <<EOF
---
github: [ Luzifer ]
...
EOF