Skip to content

Commit

Permalink
fix: add new params to action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
workflow committed Mar 18, 2023
1 parent 05df0b5 commit 0a573af
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 41 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:

- `interpreter`: Interpreter to use in the nix shell shebang, defaults to `bash`. (This is passed to `nix run -c`, used to be `-i` in a nix shell shebang)

- `packages`: Comma-separated list of packages to pre-install in your shell. Defaults to just `bash`. Cannot be used together with the `flakes` option.
- `packages`: Comma-separated list of packages to pre-install in your shell. Cannot be used together with the `flakes` option.

- `flakes`: Comma-separated list of fully qualified flakes to pre-install in your shell. Use either `packages` or `flakes`. Cannot be used together with the `packages` option.

Expand Down
13 changes: 10 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,22 @@ inputs:
description: 'Interpreter to use in the nix shell shebang'
default: 'bash'
packages:
required: true
description: 'Comma separated list of packages that are to be available in your shell'
required: false
description: 'Comma-separated list of packages to pre-install in your shell. Defaults to simply "bash". Cannot be used together with the flakes option'
default: 'bash'
flakes:
required: false
description: 'Comma-separated list of fully qualified flakes to pre-install in your shell. Use either packages or flakes. Cannot be used together with the packages option'
script:
required: true
description: 'The actual script to execute in the shell'
working-directory:
required: false
description: 'Execute the script inside the specified working directory instead of the repository root. Example: path/to/dir'

branding:
color: 'blue'
icon: 'chevron-right'
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'
57 changes: 21 additions & 36 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit 0a573af

Please sign in to comment.