Skip to content

Demo 8 - CallReusable #23

Demo 8 - CallReusable

Demo 8 - CallReusable #23

name: Demo 8 - CallReusable
on:
workflow_dispatch:
inputs:
someInput:
type: text
required: true
description: Enter the PIM ID
default: "0"
someChoice:
type: choice
options:
- Left
- Right
jobs:
caller-job:
runs-on: ubuntu-latest
steps:
- run: |
echo "Job from caller workflow"
echo ${{ github.event.inputs.someInput }}
reusable-job:
uses: ./.github/workflows/reusable.yml

Check failure on line 28 in .github/workflows/08-call-reusable.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/08-call-reusable.yml

Invalid workflow file

error parsing called workflow ".github/workflows/08-call-reusable.yml" -> "./.github/workflows/reusable.yml" (source branch with sha:1415f9dac167e54d162f20d738b7ddd2608281d2) --> "./.github/workflows/reusable2.yaml" : failed to fetch workflow: workflow was not found.
# uses: djredman99/github-intro-to-actions-demo/.github/workflows/reusable.yml@${{github.ref}}
#reusable-2:
# uses: ./.github/workflows/dotnet/reuse.yml