rl-append #520
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
with: | |
ref: ${{ github.ref }} | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1 | |
- name: Append to reading list | |
env: | |
RL_INPUT_JSON: ${{ toJSON(github.event.client_payload) }} | |
run: go run github.com/codemicro/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-deploy: | |
needs: append-to-reading-list | |
uses: ./.github/workflows/build-deploy.yml | |
secrets: inherit |