ci: update
Some checks failed
build-flake / Release a new version (push) Has been cancelled
build-flake / Build flake (push) Has been cancelled

This commit is contained in:
2026-01-03 18:13:28 +02:00
parent fedfd9235c
commit 89ee3776ec

View File

@@ -35,28 +35,18 @@ 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: Setup sudo and jq (required for the next step)
if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }}
run: apt-get update && apt-get install -y sudo jq
- name: Setup nix
if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }}
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: Build nix flake
if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }}
uses: ./.gitea/workflows/build-flake.yml
- name: Commit updates - name: Commit updates
if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }} if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }}
run: | run: |
git commit --no-gpg-sign -m 'chore(flake): update flake.lock' git commit --no-gpg-sign -m 'chore(flake): update flake.lock'
git push git push
release: build:
name: Release a new version name: Build flake
if: ${{ needs.update.outputs.changes == 'y' }} if: ${{ needs.update.outputs.changes == 'y' }}
needs: update needs: update
uses: xaked/actions/.gitea/workflows/cog-release.yml@2.0.3 uses: ./.gitea/workflows/build-flake.yml
release:
name: Release a new version
needs: build
uses: xaked/actions/.gitea/workflows/cog-release.yml@2.0.4