ci: add flake update action (#1100)

This commit is contained in:
awwpotato 2025-04-05 13:20:36 -07:00 committed by GitHub
parent 8865a737ce
commit a6a467a7c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 41 additions and 2 deletions

View file

@ -29,8 +29,8 @@ jobs:
- uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ vars.BACKPORT_APP_ID }}
private-key: ${{ secrets.BACKPORT_PRIVATE_KEY }}
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:

39
.github/workflows/update-flake.yml vendored Normal file
View file

@ -0,0 +1,39 @@
---
name: Update flake inputs
on: # yamllint disable-line rule:truthy
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
jobs:
flake-update:
runs-on: ubuntu-latest
if: github.repository_owner == 'danth'
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v16
- uses: cachix/cachix-action@v16
with:
name: stylix
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: DeterminateSystems/update-flake-lock@v24
with:
token: ${{ steps.generate-token.outputs.token }}
pr-title: "stylix: update all flake inputs"
pr-labels: dependencies github_actions
pr-body: |
Automated changes by the
[update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock)
GitHub Action.
```
${{ env.GIT_COMMIT_MESSAGE }}
```