From be1b80415a37d1c29b586c89768428194b385811 Mon Sep 17 00:00:00 2001 From: brennobemoura <37243584+brennobemoura@users.noreply.github.com> Date: Sun, 11 Jun 2023 16:26:32 -0300 Subject: [PATCH] Added platform input in macOS workflows --- .github/workflows/code-coverage.yml | 6 +++++- .github/workflows/documentation.yml | 6 +++++- .github/workflows/swift.yml | 3 ++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 231709f..934d192 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -12,10 +12,14 @@ on: target: required: true type: string + platform: + default: 'macOS-latest' + required: false + type: string jobs: code-coverage: - runs-on: macOS-latest + runs-on: ${{ inputs.platform }} steps: - name: ⬇️ Get Sources uses: actions/checkout@v3.5.3 diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index a53ee31..7500579 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -15,6 +15,10 @@ on: output: required: true type: string + platform: + default: 'macOS-latest' + required: false + type: string concurrency: group: docs-${{ github.ref }} @@ -27,7 +31,7 @@ permissions: jobs: build: - runs-on: macOS-latest + runs-on: ${{ inputs.platform }} steps: - name: ⬇️ Get Sources uses: actions/checkout@v3.5.3 diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 20005c3..15273d3 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -7,7 +7,8 @@ on: required: true type: string platform: - required: true + default: 'macOS-latest' + required: false type: string jobs: