-
Notifications
You must be signed in to change notification settings - Fork 27
33 lines (29 loc) · 1.09 KB
/
sync.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
on:
push:
branches:
- main
workflow_dispatch:
name: Sync
jobs:
sync-files:
strategy:
max-parallel: 3
matrix:
file: [.github, bat, fastfetch, nvim, starship, wezterm, nvim]
repo: [dots, nix, Windots]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Sync ${{ matrix.file }} to ${{ matrix.repo }}
uses: scottmckendry/repo-files-clean-copy-sync@main
env:
API_TOKEN_GITHUB: ${{ secrets.SYNC_TOKEN }}
with:
source_file: "${{ matrix.file }}/"
destination_repo: "scottmckendry/${{ matrix.repo }}"
destination_folder: "/"
user_email: "[email protected]"
user_name: "Scott McKendry"
commit_message: "${{ github.event.head_commit.message }}\n[skip ci]\nAutomated sync from ${{ github.repository }}"
git_server: "github.com"