depot/.github/workflows/update-flake-lock.yaml

23 lines
638 B
YAML
Raw Normal View History

2022-08-27 03:41:30 +03:00
name: Update flake.lock
2022-08-27 02:40:01 +03:00
on:
workflow_dispatch: # allows manual triggering
schedule:
2022-08-27 03:41:30 +03:00
- cron: '0 0 * * 0'
2022-08-27 02:40:01 +03:00
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v16
2022-08-27 03:41:30 +03:00
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d')"
2022-08-27 02:40:01 +03:00
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v13
with:
2022-08-27 03:41:30 +03:00
pr-title: "Updates ${{ steps.date.outputs.date }}"
branch: "updates-${{ steps.date.outputs.date }}"