Skip to content

DeterminateSystems/update-flake-lock-test-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

update-flake-lock-test

This repository is a template for testing changes to the https://github.com/DeterminateSystems/update-flake-lock/ action.

Usage

  1. Click "Use this template"
  2. Give it a name, and click "Create repository from template"
  3. Modify the .github/workflows/update.yml file to point to your fork's update-flake-lock repository and branch
  4. Go to the "Actions" tab and click on "update-flake-lock"
  5. Then click the "Run workflow" dropdown
  6. Finally, click the "Run workflow" button

At this point, your action will be running against a flake.nix with an outdated flake.lock in a simulation of a real-word use case. If the action succeeds, you should see a PR appear against that repository.

Example

If your username / organization is some-name and your branch is some-branch, your update.yml would look like the following:

name: update-flake-lock
on:
  workflow_dispatch:

jobs:
  lockfile:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2
      - name: Install Nix
        uses: DeterminateSystems/nix-installer-action@v1
      - name: Update flake.lock
        uses: some-name/update-flake-lock@some-branch

Releases

No releases published

Packages

No packages published

Languages