Skip to content

Commit

Permalink
Add Overview page for Workflows in docs
Browse files Browse the repository at this point in the history
Fix admonition.

Closes #5
  • Loading branch information
CasperWA committed Jul 5, 2022
1 parent 3faa523 commit ac02df5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
1 change: 0 additions & 1 deletion docs/workflows/.pages

This file was deleted.

5 changes: 3 additions & 2 deletions docs/workflows/ci_check_pyproject_dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ This workflow runs an [Invoke](https://pyinvoke.org) task to check dependencies

The reason for having this workflow and not using [Dependabot](https://github.com/dependabot/dependabot-core) is because it seems to not function properly with this use case.

> **Warning**: If a PAT is not passed through for the `PAT` secret and `GITHUB_TOKEN` is used, beware that any other CI/CD jobs that run for, e.g., pull request events, may not run since `GITHUB_TOKEN`-generated PRs are designed to not start more workflows to avoid escalation.
> Hence, if it is important to run CI/CD workflows for pull requests, consider passing a PAT as a secret to this workflow represented by the `PAT` secret.
!!! warning
If a PAT is not passed through for the `PAT` secret and `GITHUB_TOKEN` is used, beware that any other CI/CD jobs that run for, e.g., pull request events, may not run since `GITHUB_TOKEN`-generated PRs are designed to not start more workflows to avoid escalation.
Hence, if it is important to run CI/CD workflows for pull requests, consider passing a PAT as a secret to this workflow represented by the `PAT` secret.

## Expectations

Expand Down
9 changes: 9 additions & 0 deletions docs/workflows/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Workflows

This section contains all the available callable/reusable workflows:

- [CD - Release (`cd_release.yml`)](./cd_release.md)
- [CI - Activate auto-merging for PRs (`ci_automerge_prs.yml`)](./ci_automerge_prs.md)
- [CI/CD - New updates to default branch (`ci_cd_updated_default_branch.yml`))](./ci_cd_updated_default_branch.md)
- [CI - Check dependencies (`ci_check_pyproject_dependencies.yml`)](./ci_check_pyproject_dependencies.md)
- [CI - Update dependencies (`ci_update_dependencies.yml`)](./ci_update_dependencies.md)
4 changes: 3 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ plugins:

nav:
- Home: index.md
- ... | workflows/**
- Workflows:
- Overview: workflows/index.md
- ... | flat
- ... | python/**
- License: LICENSE.md
- Changelog: CHANGELOG.md
Expand Down

0 comments on commit ac02df5

Please sign in to comment.