Skip to content

Reuseable-workflow

Reuseable-workflow #7

name: Reuseable-workflow
on:
workflow_dispatch:
jobs:
job1:
name: Call external workflow as job
uses: projectsmahendra/XlsxWriter/.github/workflows/reusable.yml@master
secrets:
some-secret: ${{ secrets.SOME_SECRET }}

Check failure on line 11 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: 11, Col: 20): Invalid secret, some-secret is not defined in the referenced workflow.
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!"