https://github.com/determinatesystems/update-flake-lock-test-template
A template repository for testing changes to https://github.com/DeterminateSystems/update-flake-lock/
https://github.com/determinatesystems/update-flake-lock-test-template
Last synced: about 1 year ago
JSON representation
A template repository for testing changes to https://github.com/DeterminateSystems/update-flake-lock/
- Host: GitHub
- URL: https://github.com/determinatesystems/update-flake-lock-test-template
- Owner: DeterminateSystems
- License: mit
- Created: 2021-11-08T16:35:09.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-27T00:05:48.000Z (about 1 year ago)
- Last Synced: 2025-04-27T01:18:56.849Z (about 1 year ago)
- Language: Nix
- Size: 9.77 KB
- Stars: 1
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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"
1. Give it a name, and click "Create repository from template"
1. Modify the `.github/workflows/update.yml` file to point to your fork's `update-flake-lock` repository and branch
1. Go to the "Actions" tab and click on "update-flake-lock"
1. Then click the "Run workflow" dropdown
1. 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:
```yaml
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
```