In GitHub workflows, how can I call another workflow from my first one?
- User
In GitHub workflows, how can I call another workflow from my first one?
Assistant
In GitHub Actions workflows, you can invoke or call another workflow from your current workflow using the
useskeyword in a job'srunstep. Here's an example that calls a workflow named "test-workflow" from a repository with the username "octocat":name: Main Workflow on: push: branches: - main jobs: job1: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 # Here, we call the "test-workflow" workflow from the "octocat" repository - name: Run test workflow id: test-workflow-job uses: octocat/repo-name/actions/test-workflow@main with: # Passing any required inputs to the called workflow someInput: "someValue"
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.