Update flakes #26
This file contains hidden or 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 flakes" | |
on: | |
repository_dispatch: | |
workflow_dispatch: | |
schedule: | |
- cron: "51 5 * * 0" | |
jobs: | |
createPullRequest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate GitHub App Token | |
id: app-token | |
uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1 | |
with: | |
app-id: ${{ secrets.APP_ID }} | |
private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
- name: Checkout repository | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
token: ${{ steps.app-token.outputs.token }} | |
persist-credentials: false | |
- name: Install Lix | |
uses: DeterminateSystems/nix-installer-action@main | |
with: | |
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux | |
logger: pretty | |
- name: Make changes to pull request | |
run: | | |
nix flake update | |
cd .config/nix | |
nix flake update | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ steps.app-token.outputs.token }} | |
commit-message: Update flakes | |
committer: GitHub <[email protected]> | |
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
signoff: false | |
branch: flake-updates | |
delete-branch: true | |
title: "Upgrade 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 }}" |