Cafe Sync #1255
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: Cafe Sync | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
push: | |
branches: | |
- master | |
jobs: | |
sync: | |
name: Sync | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Get source sha | |
run: curl https://api.github.com/repos/ElaWorkshop/awesome-cn-cafe/branches/master --silent | grep "sha" | head -n1 > sha | |
- name: Update source sha | |
uses: EndBug/add-and-commit@v4 | |
with: | |
message: "chore: update source sha" | |
add: "sha" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |