name: Meta
on:
  push:
    branches:
      - master
      - main
  pull_request:
    branches:
      - master
      - main
  workflow_dispatch:

{% if env %}
env:
%(env)s
{% else %}
##
# To set environment variables for all jobs, add in .meta.toml:
# [github]
# env = """
#     debug: 1
#     image-name: 'org/image'
#     image-tag: 'latest'
# """
##
{% endif %}

jobs:
{% for job_name in jobs %}
  %(job_name)s:
    uses: plone/meta/.github/workflows/%(job_name)s.yml@%(ref)s
  {% if job_name == 'coverage' and os_dependencies %}
    with:
       os-packages: '%(os_dependencies)s'
  {% endif %}
{% endfor %}

##
# To modify the list of default jobs being created add in .meta.toml:
# [github]
# jobs = [
#    "qa",
#    "coverage",
#    "dependencies",
#    "release_ready",
#    "circular",
#    ]
##

##
# To request that some OS level dependencies get installed
# when running tests/coverage jobs, add in .meta.toml:
# [github]
# os_dependencies = "git libxml2 libxslt"
##

%(extra_lines)s
##
# Specify additional jobs in .meta.toml:
#  [github]
#  extra_lines = """
#  another:
#    uses: org/repo/.github/workflows/file.yml@main
#  """
##
