Update flake inputs #235
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update flake inputs | |
on: | |
schedule: | |
- cron: "0 0 * * 6" | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: main | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
input: | |
- flake-utils | |
- haskell-openapi-code-generator | |
- nix-github-actions | |
- nixpkgs-22-11 | |
- nixpkgs-23-05 | |
- nixpkgs-23-11 | |
- nixpkgs-24-05 | |
- nixpkgs-24-11 | |
- nixpkgs-haskell-updates | |
- stack-lint-extra-deps | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v30 | |
- name: Update | |
run: nix flake lock --accept-flake-config --update-input ${{ matrix.input }} | |
# Use a PAT so that Workflows run on the created PR | |
- id: token | |
uses: actions/create-github-app-token@v1 | |
with: | |
app-id: ${{ vars.FRECKLE_AUTOMATION_APP_ID }} | |
private-key: ${{ secrets.FRECKLE_AUTOMATION_PRIVATE_KEY }} | |
- uses: peter-evans/create-pull-request@v7 | |
with: | |
branch: gh/update-${{ matrix.input }} | |
title: Update ${{ matrix.input }} | |
body: | | |
Automatic update of flake input ${{ matrix.input }} | |
token: ${{ steps.token.outputs.token }} |