-
Notifications
You must be signed in to change notification settings - Fork 83
37 lines (37 loc) · 1.2 KB
/
compliance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Compliance
on:
pull_request:
types: [ opened, edited, synchronize, reopened ]
jobs:
label:
name: Apply conventional release labels
runs-on: ubuntu-latest
steps:
- uses: bcoe/conventional-release-labels@v1
changelog:
name: Changelog updated
needs: label
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Check if changelog is in diff
if: contains(github.event.pull_request.labels.*.name, 'feature') || contains(github.event.pull_request.labels.*.name, 'fix')
run: |
gh pr diff "$BRANCH" --name-only >> diff.txt
grep -Fxq "docs/changelog/changelog_en.md" diff.txt
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: ${{ github.head_ref }}
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
license-check: true
deny-licenses: 'AGPL-1.0-or-later, GPL-1.0-or-later, LGPL-2.0-or-later, NGPL'
vulnerability-check: false
comment-summary-in-pr: on-failure