Quote shell variable assignment in auto-release to prevent word splitting and fix whitespace typo in matrix reference (`matrix .yq-os` → `matrix.yq-os`) in install-yq workflow. Co-authored-by: Copilot <copilot@github.com>
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Install yq
|
|
|
|
on:
|
|
pull_request:
|
|
types: [ "opened", "reopened", "synchronize" ]
|
|
push:
|
|
branches:
|
|
- '**'
|
|
tags-ignore:
|
|
- '**'
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
install-yq:
|
|
runs-on: ${{ matrix.runs-on }}
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
# Linux
|
|
- runs-on: "ubuntu-latest-amd64"
|
|
yq-arch: "amd64"
|
|
yq-os: "linux"
|
|
- runs-on: "ubuntu-latest-arm64"
|
|
yq-arch: "arm64"
|
|
yq-os: "linux"
|
|
# Darwin
|
|
# - runs-on: "macos-latest-amd64"
|
|
# yq-arch: "amd64"
|
|
# yq-os: "darwin"
|
|
# - runs-on: "macos-latest-arm64"
|
|
# yq-arch: "arm64"
|
|
# yq-os: "darwin"
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
- name: Install yq
|
|
shell: bash
|
|
env:
|
|
YQ_ARCH: ${{ matrix.yq-arch }}
|
|
YQ_BINARY_NAME: ${{ inputs.yq-binary-name }}
|
|
YQ_DOWNLOAD_URL: ${{ inputs.yq-download-url }}
|
|
YQ_OS: ${{ matrix.yq-os }}
|
|
YQ_VERSION: ${{ inputs.yq-version }}
|
|
run: ./install-yq.sh |