Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
6f24a31032
|
|||
|
d44a563d42
|
|||
|
8b42406820
|
|||
|
3d7b077a0e
|
|||
|
2046c6c7a7
|
|||
|
9c681c4b03
|
|||
|
8059c25767
|
|||
|
031ccb890e
|
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
@@ -18,8 +18,8 @@ jobs:
|
|||||||
uses: https://git.huizinga.dev/infra/archlinux-package-action@v4
|
uses: https://git.huizinga.dev/infra/archlinux-package-action@v4
|
||||||
with:
|
with:
|
||||||
path: .
|
path: .
|
||||||
- run: ls | grep -E 'crete-[0-9]+\.[0-9]+\.[0-9]+-[0-9]+-.*.pkg.tar.zst'
|
|
||||||
- name: Upload package
|
- name: Upload package
|
||||||
run: curl --user ${{ gitea.actor }}:${{ secrets.GITEA_TOKEN }} \
|
run: |
|
||||||
--upload-file="$(ls | grep -E 'crete-[0-9]+\.[0-9]+\.[0-9]+-[0-9]+-.*.pkg.tar.zst')" \
|
curl --user ${{ gitea.actor }}:${{ secrets.GITEA_TOKEN }} \
|
||||||
|
--upload-file "$(ls | grep -E 'crete-[0-9]+\.[0-9]+\.[0-9]+-[0-9]+-.*.pkg.tar.zst')" \
|
||||||
https://git.huizinga.dev/api/packages/infra/arch/core
|
https://git.huizinga.dev/api/packages/infra/arch/core
|
||||||
|
|||||||
+9
-1
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user