~emersion/mrsh

ref: 819e0495ca9e0db1a5459892aefdb2608b397d0a mrsh/.builds/annotate.yml -rw-r--r-- 585 bytes
819e0495 — Issam Maghni Nitpick details about buit-ins 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
image: archlinux
packages:
  - mrsh-git
  - annotatesh-git
sources:
  - https://git.sr.ht/~emersion/mrsh
secrets:
  - a00689d3-2a09-4e1b-a5f9-83d1082f1704
tasks:
  - annotatesh: |
      cd mrsh
      annotatesh-git >annotations.json
  - upload: |
      cd mrsh
      set +x # hide secrets
      oauth_token="$(cat ~/.annotate-token)"
      owner='~emersion'
      repo='mrsh'
      curl -X PUT \
        -H "Authorization: token $oauth_token" \
        -H "Content-Type: application/json" \
        -d @annotations.json \
        https://git.sr.ht/api/"$owner"/repos/"$repo"/annotate