-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: exclude dependabot from codeowner validation and auto format (#454)
* ci: exclude dependabot from codeowners * ci: use parenthesis around conditions * ci: small fix to condition in first validation * ci: address feedback - revert 2nd if logic * ci(auto-format): skip dependabot
- Loading branch information
Showing
2 changed files
with
11 additions
and
6 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
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 |
---|---|---|
|
@@ -9,10 +9,12 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout source code at current commit" | ||
uses: actions/checkout@v2 | ||
# Leave pinned at 0.7.1 until https://github.com/mszostok/codeowners-validator/issues/173 is resolved | ||
uses: actions/checkout@v4 | ||
|
||
# Leave pinned at 0.7.1 until https://github.com/mszostok/codeowners-validator/issues/173 is resolved | ||
- uses: mszostok/[email protected] | ||
if: github.event.pull_request.head.repo.full_name == github.repository | ||
# This condition verifies that the PR repo equals the Github Repo and it's NOT dependabot | ||
if: ${{ (github.event.pull_request.head.repo.full_name == github.repository) && (github.actor != 'dependabot[bot]') }} | ||
name: "Full check of CODEOWNERS" | ||
with: | ||
# For now, remove "files" check to allow CODEOWNERS to specify non-existent | ||
|
@@ -22,7 +24,9 @@ jobs: | |
owner_checker_allow_unowned_patterns: "false" | ||
# GitHub access token is required only if the `owners` check is enabled | ||
github_access_token: "${{ secrets.REPO_ACCESS_TOKEN }}" | ||
|
||
- uses: mszostok/[email protected] | ||
# This condition verifies that the PR repo does NOT equal the Github Repo | ||
if: github.event.pull_request.head.repo.full_name != github.repository | ||
name: "Syntax check of CODEOWNERS" | ||
with: | ||
|