Define reusable workflows/composite actions to use in my projects.
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
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