Files
nvim/.gitea/workflows/update-flake-lock.yml
Mykhailo Nikiforov f53912310a
Some checks failed
update-flake-lock / lockfile (push) Failing after 41s
Fix git config
2023-09-27 10:57:36 +03:00

32 lines
983 B
YAML

name: update-flake-lock
on:
push:
branches:
- main
workflow_dispatch: # allows manual triggering
schedule:
- cron: "0 0 * * 0" # runs weekly on Sunday at 00:00
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup sudo (required for the next step)
run: apt-get update && apt-get install -y sudo
- name: Setup nix
uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Update nix flake lockfile
run: |
git status
nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update
git status
git diff
git config --global user.name "Gitea Bot"
git config --global user.email "gitea@xaked.com"
git add flake.lock
git commit -m '[Gitea CI]: bump flake.lock versions'