Skip to content

Update flakes

Update flakes #45

Workflow file for this run

name: 'Update flakes'
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * 0'
jobs:
update-flakes:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Nix Flakes doesn't work on shallow clones
fetch-depth: 0
- name: Install nix ❄️
uses: cachix/install-nix-action@v18
with:
extra_nix_config: 'access-tokens = github.com=${{ github.token }}'
- name: Update flakes ⌛
run: nix flake update
- name: Create Pull Request 📨
id: cpr
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update flakes
committer: GitHub <[email protected]>
author: github-actions <[email protected]>
signoff: false
branch: flake-updates
delete-branch: true
title: 'Update flakes'
body: |
Update report
- Updated with *today's* date
- Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"