mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 07:53:55 -05:00
github: reorg workflows and sync to codeberg and gitlab
This commit is contained in:
parent
1147df487c
commit
90859f88f6
17
.github/workflows/check-flake.yml
vendored
17
.github/workflows/check-flake.yml
vendored
|
@ -1,17 +0,0 @@
|
||||||
name: "flake: evaluation check"
|
|
||||||
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
|
|
||||||
- uses: cachix/install-nix-action@v20
|
|
||||||
|
|
||||||
- name: Check if flake.nix still evaluates
|
|
||||||
run: nix flake check
|
|
17
.github/workflows/check-fmt.yml
vendored
17
.github/workflows/check-fmt.yml
vendored
|
@ -1,17 +0,0 @@
|
||||||
name: "flake: format check"
|
|
||||||
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- uses: cachix/install-nix-action@v20
|
|
||||||
|
|
||||||
- name: Check if flake complies with default style
|
|
||||||
run: nix fmt -- -c .
|
|
21
.github/workflows/flake-checks.yml
vendored
Normal file
21
.github/workflows/flake-checks.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
name: "nix"
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
check-format:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: cachix/install-nix-action@v20
|
||||||
|
- name: check if flake complies with default style
|
||||||
|
run: nix fmt -- -c .
|
||||||
|
check-eval:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
- uses: cachix/install-nix-action@v20
|
||||||
|
- name: check if flake evaluates
|
||||||
|
run: nix flake check
|
|
@ -1,31 +1,23 @@
|
||||||
name: "flake.lock: update"
|
name: "nix"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 6 * * *"
|
- cron: "0 6 * * *"
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
update-inputs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- uses: cachix/install-nix-action@v20
|
- uses: cachix/install-nix-action@v20
|
||||||
|
- name: update inputs in flake.lock
|
||||||
- name: Update inputs in flake.lock
|
|
||||||
run: nix flake update
|
run: nix flake update
|
||||||
|
- name: check if flake evaluates
|
||||||
- name: Check if flake still evaluates
|
|
||||||
run: nix flake check
|
run: nix flake check
|
||||||
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
commit_message: "flake.lock: update"
|
commit_message: "flake: update inputs"
|
||||||
branch: master
|
branch: master
|
||||||
commit_options: '--no-verify --signoff'
|
commit_options: '--no-verify --signoff'
|
||||||
file_pattern: flake.lock
|
file_pattern: flake.lock
|
29
.github/workflows/git-sync-mirrors.yml
vendored
Normal file
29
.github/workflows/git-sync-mirrors.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
name: "git"
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
sync-codeberg:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: check out repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: "sync codeberg mirror"
|
||||||
|
uses: yesolutions/mirror-action@v0.7.0
|
||||||
|
with:
|
||||||
|
REMOTE: 'https://codeberg.org/alyraffauf/nixcfg.git'
|
||||||
|
GIT_USERNAME: alyraffauf
|
||||||
|
GIT_PASSWORD: ${{ secrets.CODEBERG_PASSWORD }}
|
||||||
|
sync-gitlab:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: check out repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: "sync gitlab mirror"
|
||||||
|
uses: yesolutions/mirror-action@v0.7.0
|
||||||
|
with:
|
||||||
|
REMOTE: 'https://gitlab.com/alyraffauf/nixcfg.git'
|
||||||
|
GIT_USERNAME: alyraffauf
|
||||||
|
GIT_PASSWORD: ${{ secrets.GITLAB_PASSWORD }}
|
Loading…
Reference in a new issue