Skip to content

Update Microcodes

Update Microcodes #105

name: Update Microcodes
on:
schedule:
- cron: "0 0 * * 1" # Runs every Monday at midnight
workflow_dispatch: # Allows manual trigger of the workflow
permissions:
pull-requests: write
contents: write
jobs:
update-microcodes:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Setup git
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
- name: Update microcodes
run: ./update-microcodes.sh
- name: Create PR
uses: peter-evans/create-pull-request@v6
with:
branch: update-microcodes-${{ env.shortRev }}
delete-branch: true
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
title: "Update CPUMicrocodes input to ${{ env.shortRev }}"
body: "This PR sets the CPUMicrocodes flake input to the latest revision, updating the microcode binaries."