infrastructure/.github/workflows/update.yml

35 lines
877 B
YAML
Raw Normal View History

2023-11-19 18:48:48 +00:00
name: update-flake-inputs
on:
schedule:
2024-01-04 11:52:15 +00:00
- cron: '@hourly'
2023-11-19 18:48:48 +00:00
jobs:
update-lockfile:
runs-on: ubuntu-latest
2023-11-19 18:51:56 +00:00
container:
volumes:
- /mnt/cache/nix_store:/nix
2023-11-19 18:48:48 +00:00
steps:
- name: Checkout repository
uses: actions/checkout@v4
2023-11-19 19:00:34 +00:00
- name: Install sudo
run: apt update && apt install -y sudo
2023-11-19 18:48:48 +00:00
- name: Install Nix
uses: cachix/install-nix-action@v23
with:
2023-11-19 19:42:43 +00:00
github_access_token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
2023-11-19 18:48:48 +00:00
extra_nix_config: |
2023-11-19 19:42:43 +00:00
access-tokens = gitnext.lewd.wtf=${{ secrets.AUTOUPDATE_TOKEN }}
2023-11-19 18:48:48 +00:00
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v20
2023-11-19 19:07:00 +00:00
env:
ACTION_RUNTIME_TOKEN: ''
GITHUB_TOKEN: ''
2023-11-19 18:48:48 +00:00
with:
pr-title: "update flake inputs"
pr-labels: |
update
automated