shortcut_trigger #13
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: shortcut trigger | |
on: | |
repository_dispatch: | |
types: [shortcut_trigger] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: update like.json | |
run: | | |
echo '${{ toJSON(github.event.client_payload.like_list) }}' | |
npm run like '${{ toJSON(github.event.client_payload.like_list) }}' | |
env: | |
CI: true | |
- name: Commit files | |
run: | | |
git add src/like.json | |
git config --local user.email "[email protected]" | |
git config --local user.name "clverpanda" | |
git commit -m "Update Bangumi" -a | |
git push |