Skip to content

Commit

Permalink
Merge pull request #3 from StarrFox/use_better_lock_action
Browse files Browse the repository at this point in the history
use better lock updater
  • Loading branch information
vbe0201 committed Dec 9, 2023
2 parents d13fdc0 + 04837d6 commit 93da432
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
name: "Update flake.lock"

name: update-flake-lock
on:
workflow_dispatch:
schedule:
- cron: "0 1 1 * *"
workflow_dispatch:

jobs:
update:
lockfile:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Checkout repository
uses: actions/checkout@v2
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- run: nix develop --command nix flake update

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
uses: DeterminateSystems/nix-installer-action@v1
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v19
with:
title: "[CI] Update flake.lock"
branch: update
branch-suffix: timestamp
delete-branch: true
reviewers: vbe0201
pr-title: "Update flake.lock" # Title of PR to be created

0 comments on commit 93da432

Please sign in to comment.