Workflow file: check-workflows-task.yml
Validate the repository's GitHub Actions workflows against the JSON schema.
This is the version of the workflow for projects using the Task task runner tool.
- [
Taskfile.yml
](assets/check-workflows-task/Taskfile.yml] - workflow validation task.- Install to: repository root (or add the
ci:validate
task into the existingTaskfile.yml
)
- Install to: repository root (or add the
Markdown badge:
[](https://github.com/REPO_OWNER/REPO_NAME/actions/workflows/check-workflows-task.yml)
Replace the REPO_OWNER
and REPO_NAME
placeholders in the URLs with the final repository owner and name (example).
Asciidoc badge:
image:https://github.com/{repository-owner}/{repository-name}/actions/workflows/check-workflows-task.yml/badge.svg["Check Workflows status", link="https://github.com/{repository-owner}/{repository-name}/actions/workflows/check-workflows-task.yml"]
Define the {repository-owner}
and {repository-name}
attributes and use them throughout the readme (example).
Add CI workflow to validate GitHub Actions workflows
On every push or pull request that affects the repository's GitHub Actions workflows, and periodically, validate them
against the JSON schema.
On every push or pull request that affects the repository's GitHub Actions workflows, and periodically, validate them against the JSON schema.