Skip to content

Reuseable-workflow

Reuseable-workflow #5

name: Reuseable-workflow
on:
workflow_dispatch:
jobs:
job1:
name: Call external workflow as job
uses: projectsmahendra/XlsxWriter/.github/workflows/reusable.yml@master

Check failure on line 9 in .github/workflows/reuseable-workflow.yml

View workflow run for this annotation

GitHub Actions / Reuseable-workflow

Invalid workflow file

The workflow is not valid. .github/workflows/reuseable-workflow.yml (Line: 9, Col: 11): Input arguments is required, but not provided while calling. .github/workflows/reuseable-workflow.yml (Line: 11, Col: 19): Invalid input, some-input is not defined in the referenced workflow.
with:
some-input: "value"
secrets:
some-secret: ${{ secrets.SOME_SECRET }}
job2:
name: Regular job
runs-on: ubuntu-latest
needs: job1
if: always() # ✅ Add this to run job2 even if job1 fails
steps:
- name: Say hello from job2
run: echo "Hello from job2!"