Skip to content

Check if job yaml file exists #356

@mauritsvanrees

Description

@mauritsvanrees

In meta.yml.j2 we have:

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 %}

So if job_name is test, this will try to use our .github/workflows/test.yml, which since recently no longer exists, because people should use the test-matrix workflow instead.

That is what I fix here in diazo: plone/diazo#97

In the Python code we could check if the yaml file exists. But probably only if ref is not explicitly set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions