mirror of
https://github.com/dagger/dagger-for-github.git
synced 2025-12-31 20:59:43 +11:00
feat: add 'cmds' input
Signed-off-by: João Fernandes <joaofnds@joaofnds.com>
This commit is contained in:
parent
d1bb14ca11
commit
056e107b22
6 changed files with 47 additions and 11 deletions
17
README.md
17
README.md
|
|
@ -43,7 +43,7 @@ jobs:
|
|||
name: Dagger
|
||||
uses: dagger/dagger-for-github@v2
|
||||
with:
|
||||
args: do test
|
||||
cmds: do test
|
||||
```
|
||||
|
||||
### Install Only
|
||||
|
|
@ -60,6 +60,19 @@ steps:
|
|||
run: dagger version
|
||||
```
|
||||
|
||||
### Multiple commands
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
-
|
||||
name: Install Dagger
|
||||
uses: dagger/dagger-for-github@v2
|
||||
with:
|
||||
cmds: |
|
||||
project update
|
||||
do test
|
||||
```
|
||||
|
||||
## Customizing
|
||||
|
||||
### inputs
|
||||
|
|
@ -69,7 +82,7 @@ Following inputs can be used as `step.with` keys
|
|||
| Name | Type | Default | Description |
|
||||
|------------------|---------|--------------|------------------------------------------------------------------|
|
||||
| `version` | String | `latest` | Dagger version |
|
||||
| `args` | String | | Arguments to pass to Dagger |
|
||||
| `cmds` | String | | Commands to run on Dagger |
|
||||
| `workdir` | String | `.` | Working directory (below repository root) |
|
||||
| `install-only` | Bool | `false` | Just install Dagger |
|
||||
| `cleanup` | Bool | `true` | Cleanup Dagger home folder at the end of a job |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue