This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Reuseable-workflow | ||
| on: | ||
| workflow_dispatch: | ||
| jobs: | ||
| job1: | ||
| name: Call external workflow as job | ||
| uses: projectsmahendra/XlsxWriter/blob/master/.github/workflows/reusable.yml@master | ||
|
Check failure on line 9 in .github/workflows/reuseable-workflow.yml
|
||
| with: | ||
| some-input: "value" | ||
| secrets: | ||
| some-secret: ${{ secrets.SOME_SECRET }} | ||
| continue-on-error: true | ||
| 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!" | ||