Skip to content

Commit

Permalink
chore(workflow): add license-checker and pr-title-checker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
baifuyu committed Nov 21, 2023
1 parent 85fefd9 commit 8b90d27
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/license-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: License Checker

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
check:
name: "License Validation"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Check License Header
uses: apache/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
log: info
3 changes: 2 additions & 1 deletion .github/workflows/openspg-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

name: CI

on: [ pull_request ]
on:
pull_request:

jobs:
build:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/pr-title-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Lint PR"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
pull-requests: write

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
wip: true

0 comments on commit 8b90d27

Please sign in to comment.