Trigger updates from PRs #19
Workflow file for this run
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 the library lists | |
on: | |
schedule: | |
- cron: '0 15 * * 1' | |
workflow_dispatch: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v23 | |
with: | |
extra_nix_config: | | |
accept-flake-config = true | |
- name: Update the Emacs package set | |
run: nix flake update | |
- name: Update the definitions | |
run: nix develop -c just | |
- name: Check the output | |
run: | | |
nix flake check | |
git add ./generated | |
nix eval .#data --json | jq | |
- name: Prevent flake.lock from being committed | |
run: | | |
rm -f flake.lock | |
git rm -f --cached flake.lock | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
title: 'Update the library lists' | |
commit-message: 'chore: Update the library lists' | |
branch: "automation/update-library-lists-${{ github.ref_name }}" | |
base: master | |
delete-branch: true | |
add-paths: generated | |
labels: automation,update |