Skip to content

Commit

Permalink
chore: allow to pick which licenses to run
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanBredehoft committed Apr 5, 2024
1 parent 6d7f3e6 commit c547856
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/update_licenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,48 @@
name: Update licenses
on:
workflow_dispatch:
inputs:
linux:
description: "Update licenses for Ubuntu"
type: boolean
required: false
default: true
mac_silicon:
description: "Update licenses for macOS (silicon)"
type: boolean
required: false
default: true
mac_intel:
description: "Update licenses for macOS (intel)"
type: boolean
required: false
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:
Expand Down

0 comments on commit c547856

Please sign in to comment.