-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (38 loc) · 1 KB
/
sync.yml
File metadata and controls
48 lines (38 loc) · 1 KB
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
41
42
43
44
45
46
47
48
name: Sync
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
concurrency:
group: sync
cancel-in-progress: true
permissions:
contents: write
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git remote add ejs https://github.com/yt-dlp/ejs.git || true
- name: Sync subtree
run: |
git fetch ejs main
git subtree pull --prefix=ejs ejs main --squash
- name: Setup Node
uses: actions/setup-node@v5
- name: Sync dependencies
run: npm run sync:deps
- name: Commit changes
run: |
if [[ -n "$(git status --porcelain)" ]]; then
git add -A
git commit -m "chore: sync with ejs"
fi
git push origin main