Skip to content

Commit

Permalink
Use DeterminateSystems/update-flake-lock in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <sora@morimoto.io>
  • Loading branch information
smorimoto committed Dec 4, 2024
1 parent 7768fd1 commit 548e20a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ permissions: read-all
jobs:
dependency-review:
name: Dependency Review

runs-on: ubuntu-latest

steps:
- name: Checkout tree
uses: actions/checkout@v4

- name: Dependency Review
uses: actions/dependency-review-action@v4
18 changes: 4 additions & 14 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
name: "Nix"
name: Nix

on:
pull_request:
push:
branches:
- master
- push
- pull_request

# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
# Concurrent workflows are grouped by the PR or branch that triggered them
# (github.ref) and the name of the workflow (github.workflow). The
# 'cancel-in-progress' option then make sure that only one workflow is running
# at a time. This doesn't prevent new jobs from running, rather it cancels
# already running jobs before scheduling new jobs.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' || github.sha }}
cancel-in-progress: true
permissions: read-all

jobs:
tests:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Nix: update-flake-lock"

on:
workflow_dispatch:
schedule:
- cron: 0 0 * * 0

jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/update-flake-lock@v24
with:
pr-title: Update flake.lock
pr-labels: |
dependencies
no changelog

0 comments on commit 548e20a

Please sign in to comment.