Skip to content

Commit 1385bee

Browse files
committed
Use boolean strings instead
1 parent ff96863 commit 1385bee

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ The following inputs can be used to alter the Docker tag name determination:
2020
| `branches` | string | No | `` | Optionally specify a comma separated list of branches to add to the build matrix. |
2121
| `tags` | string | No | `` | Optionally specify a comma separated list of tags to add to the build matrix. |
2222
| `num_latest_tags` | number | No | `0` | Optionally add x number of latest git tags to the build matrix (requires `repository_default_branch` to point to your repository's main branch. |
23-
| `disable_refs` | boolean | No | `false` | Optionally force to disable all refs alltogether by returning an empty matrix and has_refs=false. Values: `0`, `1`, `false`, `true` |
23+
| `disable_refs` | string | No | `false` | Optionally force to disable all refs alltogether by returning an empty matrix and has_refs=false. Values: `0`, `1`, `false`, `true` |
2424

2525

2626
## :arrow_backward: Outputs
2727

28-
| Output | Type | Description |
29-
|--------------|---------|---------------------------------------------------------------------------|
30-
| `matrix` | string | Stringified JSON build matrix. Example: `["master","v0.1.0"]` |
31-
| `has_refs` | boolean | Flag that tells if we have matrix refs or not. Example: `true` or `false` |
28+
| Output | Type | Description |
29+
|--------------|---------|-----------------------------------------------------------------------------|
30+
| `matrix` | string | Stringified JSON build matrix. Example: `["master","v0.1.0"]` |
31+
| `has_refs` | string | String that tells if we have matrix refs or not. Example: `true` or `false` |
3232

3333

3434
## :computer: Usage

action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ inputs:
2525
required: false
2626
default: 0
2727
disable_refs:
28-
description: 'A Flag (0 or 1 or false or true) to disable refs alltogether and return an empty matrix and has_refs=0.'
28+
description: 'A string flag (0 or 1 or false or true) to disable refs alltogether and return an empty matrix and has_refs=false.'
2929
required: false
3030
default: 0
3131

@@ -34,7 +34,7 @@ outputs:
3434
description: "(string) Stringified JSON build matrix for defined git refs. (list of strings)"
3535
value: ${{ steps.set-matrix.outputs.matrix }}
3636
has_refs:
37-
description: "(boolean) Flag that tells if we have matrix (list not empty) refs or not (list empty)."
37+
description: "(string) String flag ('true' or 'false') that tells if we have matrix (list not empty) refs or not (list empty)."
3838
value: ${{ steps.set-matrix.outputs.has_refs }}
3939

4040
runs:

0 commit comments

Comments
 (0)