diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 69012c7..3200f10 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: my-github-actions-bot@example.org # defaults to "actions@github.com" + commit_author: BOT NixOS Flake Update # defaults to author of the commit that triggered the run + skip_dirty_check: false + skip_fetch: true