forked from codemicro/readingList
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1007 Bytes
/
append.yml
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
39
40
name: Append article to reading list
on:
repository_dispatch:
types: ["rl-append"]
concurrency:
group: append-to-reading-list
jobs:
append-to-reading-list:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Append to reading list
env:
RL_INPUT_JSON: ${{ toJSON(github.event.client_payload) }}
run: go run github.com/manuelmazzuola/readingList add
- name: Commit changes
run: |
git config user.email "[email protected]"
git config user.name "Automatic update"
git add readingList.csv
git commit -m "Automated reading list update on $(date)"
git push -u origin master
build-site:
needs: append-to-reading-list
uses: ./.github/workflows/build.yml