Skip to content

Workflow file for this run

name: Call a reusable workflow and use its outputs
on:
workflow_dispatch:
push:
branches:
- "**"
pull_request:
branches: [main]
types: [opened, reopened, synchronize]
jobs:
job1:
uses: octo-org/example-repo/.github/workflows/called-workflow.yml@v1

Check failure on line 13 in .github/workflows/job2.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/job2.yml

Invalid workflow file

error parsing called workflow ".github/workflows/job2.yml" -> "octo-org/example-repo/.github/workflows/called-workflow.yml@v1" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
job2:
runs-on: ubuntu-latest
needs: job1
steps:
- run: echo ${{ needs.job1.outputs.firstword }} ${{ needs.job1.outputs.secondword }}