Skip to content

Commit

Permalink
doc: Info in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xgroleau authored and cole-h committed Mar 29, 2023
1 parent 8a88a06 commit 54eb0b2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,31 @@ jobs:
inputs: input1 input2 input3
```

## Example adding options to nix command

It is also possible to use specific options to the nix command

```yaml
name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00

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: DeterminateSystems/update-flake-lock@vX
with:
nix-options: --debug
```

## Example that prints the number of the created PR

```yaml
Expand Down

0 comments on commit 54eb0b2

Please sign in to comment.