-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Update workflows for new features (#327)
* ci: Assign project to PR * ci: Add action to warning for missing documentation
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,17 @@ jobs: | |
pip install . | ||
- name: install dev requirements | ||
run: pip install .[dev] | ||
missing-documentation: | ||
name: "Warning documentation is missing" | ||
runs-on: ubuntu-20.04 | ||
needs: [file-changes] | ||
if: needs.file-changes.outputs.code == 'true' && needs.file-changes.outputs.documentation == 'false' | ||
steps: | ||
- name: Documentation is missing | ||
uses: GrantBirki/[email protected] | ||
with: | ||
body: | | ||
Please consider documentation is missing under `docs/` folder | ||
lint-yaml: | ||
name: Run linting for yaml files | ||
runs-on: ubuntu-20.04 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,9 @@ jobs: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
check_pr_semantic: | ||
name: Check PR semantic | ||
runs-on: ubuntu-latest | ||
needs: [assign_author] | ||
steps: | ||
# Please look up the latest version from | ||
# https://github.com/amannn/action-semantic-pull-request/releases | ||
|
@@ -71,3 +73,14 @@ jobs: | |
ignoreLabels: | | ||
bot | ||
ignore-semantic-pull-request | ||
assign_project_to_pr: | ||
name: Assign Project to PR | ||
runs-on: ubuntu-latest | ||
needs: [assign_author] | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
# You can target a project in a different organization | ||
project-url: https://github.com/orgs/arista-netdevops-community/projects/2 | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |