Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshatshinde authored Jun 28, 2024
1 parent a94c4fa commit 79fdcb1
Showing 1 changed file with 25 additions and 14 deletions.
39 changes: 25 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
name: update-flake-lock
name: Bump flake.lock

on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
- cron: "0 6 * * *"

workflow_dispatch:

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

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: cachix/install-nix-action@v20

- run: nix flake update

- uses: stefanzweifel/git-auto-commit-action@v4
with:
pr-title: "Update flake.lock" # Title of PR to be created
pr-labels: | # Labels to be set on the PR
dependencies
automated
commit_message: Bump flake.lock
branch: main
commit_options: '--no-verify --signoff'
file_pattern: flake.lock
commit_user_name: BOT NixOS Flake Update # defaults to "GitHub Actions"
#commit_user_email: [email protected] # defaults to "[email protected]"
commit_author: BOT NixOS Flake Update <[email protected]> # defaults to author of the commit that triggered the run
skip_dirty_check: false
skip_fetch: true

0 comments on commit 79fdcb1

Please sign in to comment.