Skip to content

Commit 0facc6d

Browse files
committed
ci: commit yaml file into repo
1 parent 4223de4 commit 0facc6d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
build:
3030
name: Build
3131
runs-on: macos-latest
32+
permissions:
33+
contents: write
3234
steps:
3335
- uses: actions/checkout@v4
3436
- uses: Swatinem/rust-cache@v2
@@ -37,8 +39,6 @@ jobs:
3739
- name: Run
3840
run: cargo run
3941
- name: Upload
40-
uses: actions/upload-artifact@v4
42+
uses: stefanzweifel/git-auto-commit-action@v5
4143
with:
42-
name: clash.yaml
43-
path: subs/release/clash.yaml
44-
retention-days: 5
44+
commit_message: "docs: update yaml"

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async fn main() {
6767
async fn run(config: Settings) {
6868
let test_yaml_path = "subs/test/config.yaml";
6969
let test_all_yaml_path = "subs/test/all.yaml";
70-
let release_yaml_path = env::current_dir().unwrap().join("subs/release/clash.yaml");
70+
let release_yaml_path = env::current_dir().unwrap().join("clash.yaml");
7171
let test_clash_template_path = "conf/clash_test.yaml";
7272
let release_clash_template_path = "conf/clash_release.yaml";
7373
let mut urls = config.subs;

0 commit comments

Comments
 (0)