From 54eb0b2901887967e06d23a0f5576e25a247a145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?xgroleau=F0=9F=90=A2?= Date: Tue, 28 Mar 2023 16:58:48 -0400 Subject: [PATCH] doc: Info in readme --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index b39a74c..0a1a433 100644 --- a/README.md +++ b/README.md @@ -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