Skip to content

Commit

Permalink
ci: Update workflows for new features (#327)
Browse files Browse the repository at this point in the history
* ci: Assign project to PR

* ci: Add action to warning for missing documentation
  • Loading branch information
titom73 authored Aug 3, 2023
1 parent 9588560 commit a7e9a02
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/code-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/pr-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit a7e9a02

Please sign in to comment.