-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to pass runner as an optional workflow param
- Loading branch information
1 parent
1b35b4e
commit 3a062b1
Showing
2 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,20 @@ name: Release for testing | |
|
||
on: | ||
workflow_call: | ||
inputs: | ||
runner: | ||
description: Runner to run the workflow | ||
required: false | ||
type: string | ||
default: 'ubuntu-latest' | ||
outputs: | ||
version: | ||
description: Version number of the image released to ECR | ||
value: ${{ jobs.build.outputs.version }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ inputs.runner }} | ||
env: | ||
IS_DEFAULT_BRANCH: ${{ contains('refs/heads/main, refs/heads/master', github.ref) }} | ||
secrets: ${{ toJSON(secrets) }} | ||
|
@@ -36,4 +42,4 @@ jobs: | |
- id: upload-build-artifacts | ||
name: "Upload build artifacts" | ||
if: always() | ||
uses: sympower/sympower-composite-actions/[email protected] | ||
uses: sympower/sympower-composite-actions/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters