-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since the `commits` and `license-header` workflows are very simple and share the same trigger, it made sense to merge both in a single workflow
- Loading branch information
Showing
2 changed files
with
12 additions
and
31 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
24 changes: 12 additions & 12 deletions
24
.github/workflows/license-header.yml → .github/workflows/repo-conventions.yml
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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
name: Check license header | ||
name: Check repository conventions | ||
|
||
on: push | ||
|
||
on: | ||
push: | ||
paths: | ||
- ".github/workflows/license-header.yml" | ||
- ".github/license-check" | ||
- "cmd/**" | ||
- "internal/**" | ||
- "offchain/**" | ||
jobs: | ||
check-copyright: | ||
check-conventions: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: viperproject/check-license-header@v2 | ||
|
||
- name: Check conventional commit | ||
uses: cocogitto/cocogitto-action@v3 | ||
with: | ||
check-latest-tag-only: true | ||
|
||
- name: Check license header | ||
uses: viperproject/check-license-header@v2 | ||
with: | ||
path: ./ | ||
config: .github/license-check/config.json |