/gh-workflows

Repo for common stuff to use in my projects

Creative Commons Zero v1.0 UniversalCC0-1.0

gh-workflows

Define reusable workflows/composite actions to use in my projects.

Usage of composite actions

Insert as a step into your workflow (and maybe adjust submodules and nodejs):

---
name: my workflow
on: push  # yamllint disable-line rule:truthy
jobs:
  build_and_deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Prepare
        uses: tohn/gh-workflows@main
        with:
          submodules: false
          nodejs: true

Usage of reusable workflows

Insert as a job into your workflow:

---
name: my workflow
on: push  # yamllint disable-line rule:truthy
jobs:
  linting:
    uses: tohn/gh-workflows/.github/workflows/linting.yml@main
    with:
      config-file: .markdownlintrc

Sources