name: Reusable
on:
workflow_call: # to make it reusable
#workflow_dispatch: # to allow manual triggering via the UI of Github
jobs:
generate:
runs-on: ubuntu-latest
name: Generate
steps:
- name: Generate
run: |
echo A reusable workflow
name: Reusing
on:
push:
#workflow_dispatch: # to allow manual triggering via the UI of Github
jobs:
regular:
runs-on: ubuntu-latest
name: Regular
steps:
- name: Regular
run: echo Just a regular job
run-reusable:
uses: ./.github/workflows/reusable.yaml
name: Reusing
on:
push:
#workflow_dispatch: # to allow manual triggering via the UI of Github
jobs:
#regular:
# runs-on: ubuntu-latest
# name: Regular
# steps:
# - name: Regular
# run: echo Just a regular job
run-reusable:
uses: szabgab/github-actions-reusable-workflow/.github/workflows/reusable.yaml@main