diff --git a/.github/workflows/actions-lint.yaml b/.github/workflows/actions-lint.yaml index ad891a9..c53d298 100644 --- a/.github/workflows/actions-lint.yaml +++ b/.github/workflows/actions-lint.yaml @@ -18,10 +18,17 @@ name: Lint/Validate Github Actions files on: workflow_call: + inputs: + runs-on: + description: | + Github runner on which this workflow should run. + required: false + type: string + default: ubuntu-latest jobs: lint_validate_actions: - runs-on: ubuntu-latest + runs-on: ${{ inputs.runs-on }} permissions: id-token: write diff --git a/.github/workflows/attach-release-assets.yaml b/.github/workflows/attach-release-assets.yaml index c4117df..b34ac87 100644 --- a/.github/workflows/attach-release-assets.yaml +++ b/.github/workflows/attach-release-assets.yaml @@ -56,13 +56,19 @@ on: type: boolean required: false default: true + runs-on: + description: | + Github runner on which this workflow should run. + required: false + type: string + default: ubuntu-latest permissions: contents: write jobs: release_attach_assets: - runs-on: ubuntu-latest + runs-on: ${{ inputs.runs-on }} if: github.event_name == 'push' && format('refs/heads/{0}', github.event.repository.default_branch) == github.ref permissions: id-token: write diff --git a/.github/workflows/conventional-commit-release.yaml b/.github/workflows/conventional-commit-release.yaml index 38572d9..d12c849 100644 --- a/.github/workflows/conventional-commit-release.yaml +++ b/.github/workflows/conventional-commit-release.yaml @@ -70,6 +70,12 @@ on: type: string required: false default: "" + runs-on: + description: | + Github runner on which this workflow should run. + required: false + type: string + default: ubuntu-latest outputs: release_created: description: "Whether or not a release has been created in this workflow instance" @@ -108,7 +114,7 @@ jobs: commit-lint: name: PR Title and Commits Lint if: github.event_name == 'pull_request' - runs-on: ubuntu-latest + runs-on: ${{ inputs.runs-on }} permissions: id-token: write @@ -196,7 +202,7 @@ jobs: release: if: github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) name: Release Please - runs-on: ubuntu-latest + runs-on: ${{ inputs.runs-on }} outputs: release_created: ${{ steps.release.outputs.release_created }} release_tag: ${{ steps.release.outputs.tag_name }}