-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.18 KB
/
Copy pathmonkeytype-readme.yml
File metadata and controls
38 lines (32 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: generate monkeytype readme svg
on:
schedule:
- cron: "0 */6 * * *" # every 6 hours
workflow_dispatch:
permissions:
contents: write
pages: write
jobs:
download-svg:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Download SVG
run: |
mkdir public
curl -o public/monkeytype-readme.svg https://monkeytype-readme.com/generate-svg/anshmnsoni/pulse
curl -o public/monkeytype-readme-lb.svg "https://monkeytype-readme.com/generate-svg/anshmnsoni/pulse?lb=true"
curl -o public/monkeytype-readme-pb.svg "https://monkeytype-readme.com/generate-svg/anshmnsoni/pulse?pb=true"
curl -o public/monkeytype-readme-lb-pb.svg "https://monkeytype-readme.com/generate-svg/anshmnsoni/pulse?lbpb=true"
- name: push monkeytype-readme.svg to the monkeytype-readme branch
uses: crazy-max/ghaction-github-pages@v4.0.0
with:
target_branch: monkeytype-readme
build_dir: public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}