1
0
Fork 0
mirror of https://code.forgejo.org/actions/ovh-dns-update synced 2025-03-15 23:09:03 +01:00

perm octal

This commit is contained in:
oliverpool 2023-08-19 20:29:14 +02:00
parent 4993f9cae9
commit fceb957eac
2 changed files with 5 additions and 1 deletions
.forgejo/workflows
main_test.go

View file

@ -34,5 +34,9 @@ jobs:
- name: check record update
run: |
ls -al .
echo "dns.txt"
ls -al dns.txt
cat dns.txt
echo "mouse"
grep --quiet "v=v1.42" dns.txt
echo "grep"

View file

@ -78,7 +78,7 @@ func TestRun(t *testing.T) {
t.Error(msg)
return
}
err = os.WriteFile("dns.txt", []byte(body.Target), 0644)
err = os.WriteFile("dns.txt", []byte(body.Target), 0o644)
if err != nil {
msg := fmt.Sprintf("could write dns.txt: %v", err)
http.Error(w, msg, http.StatusInternalServerError)