3 Commits

Author SHA1 Message Date
Dreaded_X b3ff4fa69f feat: Set user agent
Committed / committed (pull_request) Successful in 1m56s
2026-04-06 04:03:37 +00:00
Dreaded_X 8059c25767 chore(actions): Use commited to check pr commits
Committed / committed (pull_request) Successful in 29s
CI / cargo shear (pull_request) Successful in 5m19s
CI / prek (pull_request) Successful in 5m21s
CI / cargo shear (push) Successful in 6m45s
CI / prek (push) Successful in 6m49s
Release-plz / Release-plz PR (push) Successful in 6m56s
Release-plz / Release-plz Release (push) Successful in 3m15s
2026-04-05 08:15:17 +02:00
Dreaded_X 031ccb890e chore(actions): Cancel in-progress ci runs when pushing to pr 2026-04-05 06:32:10 +02:00
3 changed files with 32 additions and 1 deletions
+4
View File
@@ -7,6 +7,10 @@ on:
- "*" - "*"
pull_request: pull_request:
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs: jobs:
prek: prek:
name: prek name: prek
+19
View File
@@ -0,0 +1,19 @@
name: Committed
on:
pull_request:
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
committed:
name: committed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: crate-ci/committed@master
with:
commits: "origin/${{ gitea.base_ref }}..HEAD"
+9 -1
View File
@@ -11,7 +11,15 @@ where
let path = get_talos_path().join("schematics").join(name); let path = get_talos_path().join("schematics").join(name);
let content = std::fs::read_to_string(path).unwrap().trim().to_owned(); let content = std::fs::read_to_string(path).unwrap().trim().to_owned();
let client = reqwest::blocking::Client::new(); let client = reqwest::blocking::ClientBuilder::new()
.user_agent(format!(
"{}/{}",
std::env!("CARGO_PKG_NAME"),
std::env!("CARGO_PKG_VERSION")
))
.build()
.unwrap();
let res = client let res = client
.post("https://factory.talos.dev/schematics") .post("https://factory.talos.dev/schematics")
.body(content) .body(content)