-
-
Notifications
You must be signed in to change notification settings - Fork 20
48 lines (41 loc) · 1.73 KB
/
sync-github-widescreen-changes.yml
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 github/github-widescreen/ to adamlui/github-widescreen/greasemonkey/
on:
push:
branches: [master]
paths: [github/github-widescreen/**]
jobs:
build:
if: (github.repository == 'adamlui/userscripts') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
runs-on: ubuntu-latest
steps:
- name: Checkout adamlui/userscripts
uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_SYNC_PAT }}
repository: adamlui/userscripts
path: adamlui/userscripts
- name: Checkout adamlui/github-widescreen
uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_SYNC_PAT }}
repository: adamlui/github-widescreen
path: adamlui/github-widescreen
- name: Sync github/github-widescreen/docs/** to adamlui/github-widescreen/docs/**
run: |
cp -r -f -v \
${{ github.workspace }}/adamlui/userscripts/github/github-widescreen/docs \
${{ github.workspace }}/adamlui/github-widescreen/
- name: Sync github/github-widescreen/ to adamlui/github-widescreen/greasemonkey/
run: |
rsync -avhr --delete \
${{ github.workspace }}/adamlui/userscripts/github/github-widescreen/ \
${{ github.workspace }}/adamlui/github-widescreen/greasemonkey/
- name: Push to adamlui/github-widescreen
uses: stefanzweifel/git-auto-commit-action@v4
with:
push_options: --force
add_options: --all
commit_user_email: auto-sync@kudoai.com
commit_message: "${{ github.event.head_commit.message }} ↞ [auto-sync from `adamlui/userscripts`]"
file_pattern: "**"
repository: adamlui/github-widescreen