Skip to content

Commit

Permalink
remembering why I do things.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Nov 19, 2024
1 parent a2e3287 commit b00856f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/example-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
type: string
required: false
description: "Version of YQ to install"
default: "v4.35.1"
download-compressed:
type: boolean
required: false
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/example-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
type: string
required: false
description: "Version of YQ to install"
default: "v4.35.1"
download-compressed:
type: boolean
required: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
type: string
required: false
description: "Version of YQ to install"
default: "v4.35.1"
download-compressed:
type: boolean
required: false
Expand All @@ -31,6 +30,7 @@ jobs:
force: '${{ inputs.force }}'

- name: 'Check yq'
# language=powershell
run: |
Get-Command "yq.exe"
yq.exe --version
7 changes: 6 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ jobs:
force:
- 'true'
- 'false'
name: "Test Action - (img: ${{ matrix.image }}; dlcmp: ${{ matrix.download-compressed }}; force: ${{ matrix.force }})"
version:
- ''
- 'v4.44.3'

name: "Test Action - (img: ${{ matrix.image }}; dlcmp: ${{ matrix.download-compressed }}; force: ${{ matrix.force }}; v: ${{ matrix.version }})"
runs-on: ${{ matrix.image }}
steps:
- uses: actions/checkout@v4
Expand All @@ -49,6 +53,7 @@ jobs:
with:
force: '${{ matrix.force }}'
download-compressed: '${{ matrix.download-compressed }}'
version: '${{ matrix.version }}'

- name: Check yq - Unix-ish
if: runner.os == 'Linux' || runner.os == 'macOS'
Expand Down
4 changes: 3 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ branding:

inputs:
version:
required: false
required: true
description: "Version of YQ to install"
default: "v4.44.3"
download-compressed:
Expand All @@ -35,6 +35,7 @@ runs:
id: yq-check-unix
if: (runner.os == 'Linux' || runner.os == 'macOS')
shell: bash +e {0}
# language=bash
run: |
_yq_bin="$(which yq)"
if [ -f "${_yq_bin}" ]; then
Expand All @@ -55,6 +56,7 @@ runs:
id: yq-check-windows
if: runner.os == 'Windows'
shell: powershell
# language=powershell
run: |
if (Get-Command "yq.exe" -ErrorAction SilentlyContinue)
{
Expand Down

0 comments on commit b00856f

Please sign in to comment.