Skip to content

Commit

Permalink
bump workflow
Browse files Browse the repository at this point in the history
Signed-off-by: lucasew <[email protected]>
  • Loading branch information
lucasew committed Dec 2, 2024
1 parent 97e27d2 commit c536d5b
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# This is a basic workflow to help you get started with Actions

name: Send a bump PR and test eval

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
workflow_dispatch:

concurrency:
group: prebuild
cancel-in-progress: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Setup kitchen
uses: lucasew/action-i-only-care-about-nix@main
- name: Get ingredients
uses: actions/checkout@v2
- name: Prepare for the stove
run: |
sudo mkdir -p /nix/build
df -h
- name: Install the stove
uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
build-dir = /nix/build
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v10
with:
name: lucasew-personal
authToken: '${{ secrets.CACHIX_TOKEN }}'
- name: Bump
run: nix flake update
- name: Cook
run: |
{ while true; do df -h; uptime; sleep 60; done } &
nix build .#release -L --keep-going
- name: Serve
uses: peter-evans/create-pull-request@v4
with:
title: "The flake bump is ready"
body: |
I updated your flake and built all the stuff to the binary cache.
Apply when you want, or don't apply, I don't mind. I am not Microsoft
Windows that forces you to do what you don't want to.
branch: bump-and-cook
commit-message: bump
author: "A helpful machine <[email protected]>"
committer: "A helpful machine <[email protected]>"
delete-branch: true
reviewers: |
lucasew

0 comments on commit c536d5b

Please sign in to comment.