generated from antfu-collective/vitesse
-
-
Notifications
You must be signed in to change notification settings - Fork 12
27 lines (23 loc) · 618 Bytes
/
sync.yml
File metadata and controls
27 lines (23 loc) · 618 Bytes
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
name: 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/shimohq/chinese-programmer-wrong-pronunciation/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 }}