7 Commits

Author SHA1 Message Date
4535cb4db5 chore(flake): update flake.lock 2026-01-05 03:15:20 +00:00
d93120d43e chore(flake): update flake.lock 2026-01-04 00:24:46 +00:00
9418deddae ci: update
Some checks failed
build-flake / Build flake (push) Has been cancelled
build-flake / Release a new version (push) Has been cancelled
2026-01-04 02:24:17 +02:00
fedfd9235c ci: update
Some checks failed
build-flake / Release a new version (push) Has been cancelled
build-flake / Build flake (push) Has been cancelled
2026-01-03 18:09:27 +02:00
0eed1c5008 ci: run release update only if any new changes are exist
All checks were successful
build-flake / Build flake (push) Successful in 5m42s
build-flake / Release a new version (push) Successful in 8s
Sync flake lock with main nix-configuration project / Sync flake lock with main nix-configuration project (push) Successful in 6m3s
Sync flake lock with main nix-configuration project / Release a new version (push) Successful in 8s
2026-01-01 20:20:29 +02:00
85a295744b ci: run release job
Some checks failed
build-flake / Build flake (push) Successful in 5m37s
build-flake / Release a new version (push) Successful in 9s
Sync flake lock with main nix-configuration project / Sync flake lock with main nix-configuration project (push) Successful in 17s
Sync flake lock with main nix-configuration project / Release a new version (push) Failing after 8s
2025-12-31 22:11:45 +02:00
adfcc88ef5 fix(flake): update flake.lock 2025-12-31 03:19:30 +00:00
3 changed files with 22 additions and 27 deletions

View File

@@ -12,4 +12,4 @@ jobs:
release: release:
name: Release a new version name: Release a new version
needs: build needs: build
uses: xaked/actions/.gitea/workflows/cog-release.yml@2.0.0 uses: xaked/actions/.gitea/workflows/cog-release.yml@2.0.3

View File

@@ -11,6 +11,8 @@ jobs:
contents: write contents: write
name: Sync flake lock with main nix-configuration project name: Sync flake lock with main nix-configuration project
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs:
changes: ${{ steps.checkChanges.outputs.CHANGES }}
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v6 uses: actions/checkout@v6
@@ -21,15 +23,6 @@ jobs:
path: nix-config path: nix-config
ref: master ref: master
token: ${{ secrets.NIX_CONFIGURATION_GITEA_CLONE_TOKEN }} token: ${{ secrets.NIX_CONFIGURATION_GITEA_CLONE_TOKEN }}
- name: Setup sudo and jq (required for the next step)
run: apt-get update && apt-get install -y sudo jq
- name: Setup nix
uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
experimental-features = nix-command flakes
github_access_token: ${{ secrets.GH_ACCESS_TOKEN }}
nix_path: nixpkgs=channel:nixos-25.11
- name: Check for update and perform update - name: Check for update and perform update
id: checkChanges id: checkChanges
run: | run: |
@@ -42,18 +35,20 @@ jobs:
jq -srM '.[1].nodes.nixpkgs = .[0].nodes.nixpkgs_2|.[1].nodes.nixpkgs_2 = .[0].nodes.nixpkgs_2 | .[1]' ./nix-config/flake.lock flake.lock > "$tmpfile" jq -srM '.[1].nodes.nixpkgs = .[0].nodes.nixpkgs_2|.[1].nodes.nixpkgs_2 = .[0].nodes.nixpkgs_2 | .[1]' ./nix-config/flake.lock flake.lock > "$tmpfile"
cat "$tmpfile" > flake.lock cat "$tmpfile" > flake.lock
git add flake.lock git add flake.lock
if [ -n "$(git diff --cached)" ]; then echo 'CHANGES=y'>>$GITHUB_OUTPUT; else echo 'CHANGES=n'>>$GITHUB_OUTPUT; fi if [ -n "$(git diff --cached)" ]; then git diff --cached; echo 'CHANGES=y'>>$GITHUB_OUTPUT; else echo 'CHANGES=n'>>$GITHUB_OUTPUT; fi
- name: Build nix flake
if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }}
run: |
nix build .
- name: Check nix flake
if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }}
run: nix flake check --all-systems
- name: Commit updates - name: Commit updates
if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }} if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }}
# FIX: chore must trigger release
# Temporary commiting as fix, because chore not triggering release
run: | run: |
git commit --no-gpg-sign -m 'fix(flake): update flake.lock' git commit --no-gpg-sign -m 'chore(flake): update flake.lock'
git push git push
build:
name: Build flake
if: ${{ needs.update.outputs.changes == 'y' }}
needs: update
uses: ./.gitea/workflows/build-flake.yml
release:
name: Release a new version
needs: build
uses: xaked/actions/.gitea/workflows/cog-release.yml@2.1.0
with:
ref: ${{ github.ref_name }}

12
flake.lock generated
View File

@@ -87,11 +87,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1766885793, "lastModified": 1767480499,
"narHash": "sha256-P6RVkrM9JLCW6xBjSwHfgTOQ1JwBUma5xe5LI8xAPC0=", "narHash": "sha256-8IQQUorUGiSmFaPnLSo2+T+rjHtiNWc+OAzeHck7N48=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9ef261221d1e72399f2036786498d78c38185c46", "rev": "30a3c519afcf3f99e2c6df3b359aec5692054d92",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -118,11 +118,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1766885793, "lastModified": 1767480499,
"narHash": "sha256-P6RVkrM9JLCW6xBjSwHfgTOQ1JwBUma5xe5LI8xAPC0=", "narHash": "sha256-8IQQUorUGiSmFaPnLSo2+T+rjHtiNWc+OAzeHck7N48=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9ef261221d1e72399f2036786498d78c38185c46", "rev": "30a3c519afcf3f99e2c6df3b359aec5692054d92",
"type": "github" "type": "github"
}, },
"original": { "original": {