rose-pine-nix/.github/workflows/update-lock.yml
github-actions[bot] 3de3278dc3
chore: update lockfiles (#70)
* chore: update dev flake inputs

Flake lock file updates:

• Updated input 'call-flake':
    'github:divnix/call-flake/7d993ee93bd35a9e6574ec76d54b7d44087495ad' (2023-11-05)
  → 'github:divnix/call-flake/4ff3ef19aee2c030cf0986508711ba19ba006375' (2024-01-07)
• Updated input 'home-manager':
    'github:nix-community/home-manager/6a8444467c83c961e2f5ff64fb4f422e303c98d3' (2023-11-07)
  → 'github:nix-community/home-manager/93e804e7f8a1eb88bde6117cd5046501e66aa4bd' (2024-01-11)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/85f1ba3e51676fa8cc604a3d863d729026a6b8eb' (2023-11-04)
  → 'github:NixOS/nixpkgs/317484b1ead87b9c1b8ac5261a8d2dd748a0492d' (2024-01-08)

* chore: update nvfetch sources

* ci: run test-vm on all lockfile updates

* fix(home-manager): use toml files for alacritty

* ci: fix typo in nvfetcher commit messages

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: seth <getchoo@tuta.io>
2024-01-11 16:23:27 -05:00

62 lines
1.6 KiB
YAML

name: Update lockfiles
on:
schedule:
# run every friday
- cron: "0 0 * * 5"
workflow_dispatch:
jobs:
update:
name: Run update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
- name: Set Git user info
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Create new branch
id: branch
run: |
# try not to conflict with other branches
branch="update-lock/${{ github.run_id }}"
echo "branch=$branch" >> "$GITHUB_OUTPUT"
git switch -c "$branch"
- name: Update flake inputs
run: |
pushd dev
nix flake update \
--commit-lock-file \
--commit-lockfile-summary "chore: update dev flake inputs"
popd
- name: Update upstream sources
run: |
nix run --inputs-from . nixpkgs#nvfetcher
if ! git diff --color=always --exit-code; then
git commit -am "chore: update nvfetcher sources"
fi
- name: Make PR if needed
env:
GH_TOKEN: ${{ github.token }}
run: |
if ! git diff --color=always --exit-code origin/main; then
git push -u origin ${{ steps.branch.outputs.branch }}
gh pr create \
--base main \
--head "${{ steps.branch.outputs.branch }}" \
--title "chore: update lockfiles" \
--fill
fi