Option to choose the runner from caller workflow #1896
Unanswered
deepaksinghkhetwal
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You should be able to add |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am working on reusable workflows. I have self-hosted runners at two places say test and prod. The runs-on parameter is added in the called workflow. I want to call the same workflow in multiple repos and choose different runners in test and prod by giving runs-on parameters in caller workflows. Is that already possible or any other workaround.
Called workflow example
jobs:
example_job:
name: Pass input and secrets to my-action
runs-on: [self-hosted, test]
steps:
with:
username: ${{ inputs.username }}
token: ${{ secrets.token }}
Caller Workflow Example
jobs:
call-workflow-in-another-repo:
uses: octo-org/another-repo/.github/workflows/workflow.yml@v1
Beta Was this translation helpful? Give feedback.
All reactions