mirror of
https://code.forgejo.org/actions/ovh-dns-update
synced 2025-03-15 14:54:40 +01:00
perm octal
This commit is contained in:
parent
4993f9cae9
commit
fceb957eac
2 changed files with 5 additions and 1 deletions
|
@ -34,5 +34,9 @@ jobs:
|
||||||
- name: check record update
|
- name: check record update
|
||||||
run: |
|
run: |
|
||||||
ls -al .
|
ls -al .
|
||||||
|
echo "dns.txt"
|
||||||
|
ls -al dns.txt
|
||||||
cat dns.txt
|
cat dns.txt
|
||||||
|
echo "mouse"
|
||||||
grep --quiet "v=v1.42" dns.txt
|
grep --quiet "v=v1.42" dns.txt
|
||||||
|
echo "grep"
|
||||||
|
|
|
@ -78,7 +78,7 @@ func TestRun(t *testing.T) {
|
||||||
t.Error(msg)
|
t.Error(msg)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = os.WriteFile("dns.txt", []byte(body.Target), 0644)
|
err = os.WriteFile("dns.txt", []byte(body.Target), 0o644)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
msg := fmt.Sprintf("could write dns.txt: %v", err)
|
msg := fmt.Sprintf("could write dns.txt: %v", err)
|
||||||
http.Error(w, msg, http.StatusInternalServerError)
|
http.Error(w, msg, http.StatusInternalServerError)
|
||||||
|
|
Loading…
Add table
Reference in a new issue