diff --git a/.github/workflows/update_licenses.yaml b/.github/workflows/update_licenses.yaml index 67dc8c7ad9..77253bfdc8 100644 --- a/.github/workflows/update_licenses.yaml +++ b/.github/workflows/update_licenses.yaml @@ -2,21 +2,45 @@ name: Update licenses on: workflow_dispatch: + inputs: + linux: + description: "Update licenses for Ubuntu" + type: boolean + default: true + mac_silicon: + description: "Update licenses for macOS (silicon)" + type: boolean + default: true + mac_intel: + description: "Update licenses for macOS (intel)" + type: boolean + default: true concurrency: group: "${{ github.ref }}-${{ github.event_name }}-${{ github.workflow }}" cancel-in-progress: true + jobs: + # Update licenses for all supported OS update_licenses: strategy: matrix: config: - - {os_name: linux, os: ubuntu-20.04} - - {os_name: mac_intel, os: macos-latest-large} - - {os_name: mac_silicon, os: macos-latest-xlarge} - + - os_name: linux + if: ${{ inputs.linux }} + - os_name: mac_silicon + if: ${{ inputs.mac_silicon }} + - os_name: mac_intel + if: ${{ inputs.mac_intel }} + - os: ubuntu-latest + if: ${{ inputs.linux }} + - os: macos-latest-xlarge + if: ${{ inputs.mac_silicon }} + - os: macos-latest-large + if: ${{ inputs.mac_intel }} + runs-on: ${{ matrix.config.os }} defaults: run: