forked from VIKINGYFY/OpenWRT-CI
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (30 loc) · 943 Bytes
/
sync-config.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
name: Sync Config Files
on:
push:
paths:
- 'Config/IPQ60XX-WIFI-NO.txt'
- 'Config/IPQ60XX-WIFI-YES.txt'
workflow_dispatch:
jobs:
sync-files:
runs-on: ubuntu-latest
steps:
# 检出代码
- name: Checkout repository
uses: actions/checkout@v3
# 同步 NO 文件
- name: Sync NO Config files
run: |
cp Config/IPQ60XX-WIFI-NO.txt Config/IPQ60XX-EMMC-WIFI-NO.txt
# 同步 YES 文件
- name: Sync YES Config files
run: |
cp Config/IPQ60XX-WIFI-YES.txt Config/IPQ60XX-EMMC-WIFI-YES.txt
# 提交更改
- name: Commit and push changes
run: |
git config --global user.name "GitHub Action"
git config --global user.email "[email protected]"
git add Config/IPQ60XX-EMMC-WIFI-NO.txt Config/IPQ60XX-EMMC-WIFI-YES.txt
git commit -m "Sync Config files: NO and YES"
git push