Skip to content

Commit d3dca11

Browse files
authored
Merge pull request #9 from cytopia/release-0.1.8
Allow flag to be 0, 1, false or true
2 parents 985a401 + aafed9c commit d3dca11

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The following inputs can be used to alter the Docker tag name determination:
2020
| `branches` | No | `` | Optionally specify a comma separated list of branches to add to the build matrix. |
2121
| `tags` | No | `` | Optionally specify a comma separated list of tags to add to the build matrix. |
2222
| `num_latest_tags` | 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` | No | `0` | Optionally force to disable all refs alltogether by returning an empty matrix and has_refs=0. |
23+
| `disable_refs` | No | `0` | Optionally force to disable all refs alltogether by returning an empty matrix and has_refs=0. Values: `0`, `1`, `false`, `true` |
2424

2525

2626
## :arrow_backward: Outputs

action.yml

+3-3
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 to disable refs alltogether and return an empty matrix and has_refs=0.'
28+
description: 'A Flag (0 or 1 or false or true) to disable refs alltogether and return an empty matrix and has_refs=0.'
2929
required: false
3030
default: 0
3131

@@ -47,13 +47,13 @@ runs:
4747
ref: ${{ inputs.repository_default_branch }}
4848
fetch-depth: 0
4949
path: .git-ref-matrix-action
50-
if: ${{ inputs.disable_refs == 0 && inputs.num_latest_tags > 0 }}
50+
if: ${{ (inputs.disable_refs == 0 || inputs.disable_refs == '0' || inputs.disable_refs == 'false') && inputs.num_latest_tags > 0 }}
5151

5252
- name: "[SETUP] Build and Export Matrix"
5353
id: set-matrix
5454
shell: bash
5555
run: |
56-
if [ "${{ inputs.disable_refs }}" = "1" ]; then
56+
if [ "${{ inputs.disable_refs }}" = "1" ] || [ "${{ inputs.disable_refs }}" = "true" ]; then
5757
###
5858
### Output matrix
5959
###

0 commit comments

Comments
 (0)