Files
nvim/.gitea/workflows/update-flake-lock.yml
Mykhailo Nikiforov 35cb0de3dd
All checks were successful
update-flake-lock / lockfile (push) Successful in 42s
Check if config was updated
2023-09-27 11:51:15 +03:00

40 lines
1.3 KiB
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: |
nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update
git status
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v16
id: verify-changed-files
with:
files: |
flake.lock
- name: Run step only when any of the above files change.
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
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'