Update depended packages #464
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 depended packages | |
on: | |
pull_request: | |
schedule: | |
- cron: "0 12 * * *" | |
workflow_dispatch: | |
jobs: | |
stablearhtns: | |
name: Check for broken evolutions | |
runs-on: macos-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout this repo | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
persist-credentials: true | |
- name: Configure git credentials | |
if: github.event_name != 'pull_request' | |
run: | | |
git config user.name '@theorderingmachine' | |
git config user.email '[email protected]' | |
- name: Install a flaked Nix | |
uses: DeterminateSystems/nix-installer-action@786fff0690178f1234e4e1fe9b536e94f5433196 # v20 | |
- name: Update to the latest | |
if: github.event_name != 'pull_request' | |
run: | | |
nix flake update | |
- name: Save the flake locks | |
if: github.event_name != 'pull_request' | |
run: | | |
git checkout -b update | |
git commit --all --message "chore(deps): automatic version bump to the most recent packages" | |
git push -u origin update | |
- name: Confirm darwin builds | |
run: | | |
nix build .#darwinConfigurations.ezmbp24.local.system | |
updateronimo: | |
name: Snapshot upstream releases | |
needs: stablearhtns | |
runs-on: self-hosted | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout the changes | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
fetch-depth: 0 | |
persist-credentials: true | |
ref: ${{ github.event.pull_request.head.ref || 'update' }} | |
- name: Reflect existing Nix | |
id: nixos | |
continue-on-error: true | |
run: uname -a | grep NixOS | |
- name: Install a flaked Nix | |
if: steps.nixos.outcome != 'success' | |
uses: DeterminateSystems/nix-installer-action@786fff0690178f1234e4e1fe9b536e94f5433196 # v20 | |
- name: Write remembered commit | |
run: | | |
cat flake.lock | |
- name: Insure nixos builds | |
run: | | |
nix build .#nixosConfigurations.tom.config.system.build.toplevel | |
- name: Save changed version | |
if: github.event_name != 'pull_request' | |
run: | | |
git checkout main | |
git merge update | |
git push -u origin main | |
git push origin --delete update |