Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/incatools/odk/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,12 @@ class OntologyProject(JsonSchemaMixin):
Currently available workflows: docs, diff, qc, release-diff.
"""

enable_dependabot: bool = False
"""Enables Dependabot alerts for outdated GitHub Actions.

This is only meaningful if `ci` is set to `github_actions`.
"""

import_pattern_ontology: bool = False
"""Imports the DOSDP-derived pattern.owl file into the ontology."""

Expand Down
9 changes: 9 additions & 0 deletions src/incatools/odk/templates/_dynamic_workflows.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ ontology_qc:
- make ROBOT_ENV='ROBOT_JAVA_ARGS=-Xmx6G' test IMP=false PAT=false
{% endif %}{# ! 'gitlab-ci' in project.ci -#}
{% if 'github_actions' in project.ci -%}
{% if project.enable_dependabot -%}
Comment thread
matentzn marked this conversation as resolved.
^^^ .github/dependabot.yml
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
{% endif -%}
{% if 'qc' in project.workflows -%}
^^^ .github/workflows/qc.yml
# Basic ODK workflow
Expand Down
Loading