Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Reuse a public GitHub Action workflow from another (public) repository.

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

repository