ci: create composite action for setup #3265
Workflow file for this run
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
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 |