From d36315beaeb7c04316cdc293afba00ed8cce4eb5 Mon Sep 17 00:00:00 2001 From: Yury Tsarev Date: Tue, 8 Oct 2024 12:22:45 +0200 Subject: [PATCH] Parametrize pr-comment-trigger(e2e) runs-on * Currently we have hardcoded self-hosted runner label that is specific to upbound * It blocks the reusable workflow adoption outside of upbound Signed-off-by: Yury Tsarev --- .github/workflows/pr-comment-trigger.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-comment-trigger.yml b/.github/workflows/pr-comment-trigger.yml index 8109259..9697ba8 100644 --- a/.github/workflows/pr-comment-trigger.yml +++ b/.github/workflows/pr-comment-trigger.yml @@ -32,6 +32,10 @@ on: default: '' required: false type: string + runs-on: + default: e2-standard-8 + required: false + type: string secrets: UPTEST_CLOUD_CREDENTIALS: description: 'Uptest cloud credentials to be passed to the uptest target as environment variable' @@ -42,7 +46,7 @@ on: jobs: debug: - runs-on: e2-standard-8 + runs-on: ${{ inputs.runs-on }} steps: - name: Debug run: | @@ -54,7 +58,7 @@ jobs: if: ${{ (github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'CONTRIBUTOR' ) && github.event.issue.pull_request && contains(github.event.comment.body, inputs.trigger-keyword ) }} - runs-on: e2-standard-8 + runs-on: ${{ inputs.runs-on }} outputs: example_list: ${{ steps.get-example-list-name.outputs.example-list }} example_hash: ${{ steps.get-example-list-name.outputs.example-hash }} @@ -111,7 +115,7 @@ jobs: if: ${{ (github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'CONTRIBUTOR' ) && github.event.issue.pull_request && contains(github.event.comment.body, inputs.trigger-keyword ) }} - runs-on: e2-standard-8 + runs-on: ${{ inputs.runs-on }} needs: get-example-list steps: