nixos-config/.github/workflows/update.yml
dependabot[bot] 6b355d2cc5
ci: bump actions/checkout from 3 to 4 (#4)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-14 10:34:13 +00:00

34 lines
1.2 KiB
YAML

name: "Update flake inputs"
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 5' # Every week on Friday.
jobs:
update:
runs-on: ubuntu-latest
env:
NIXPKGS_ALLOW_BROKEN: "1"
NIXPKGS_ALLOW_UNFREE: "1"
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v4
- name: Update flake inputs
run: |
nix flake update --commit-lock-file --commit-lockfile-summary "flake.lock: update inputs"
env:
GIT_AUTHOR_NAME: github-actions[bot]
GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com
GIT_COMMITTER_NAME: github-actions[bot]
GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com
- name: Build custom packages
run: nix build --dry-run --impure --file ./pkgs
- name: Build NixOS configurations
run: nix build --dry-run --impure .#images.x86_64-linux.{ni,plover,bootstrap}
- name: Push changes to remote
run: |
git remote remove origin
git remote add origin https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git push --set-upstream origin master