From 546b2ab35419e22504aa82dfec2a9bca9f3137aa Mon Sep 17 00:00:00 2001 From: paoloyx Date: Tue, 28 May 2024 10:03:34 +0200 Subject: [PATCH] ci: add workflow for PR semantic check (#2) * ci: add workflow for PR semantic check * ci: allow wip pull requests * ci: wip management needs write permission on pull-requests * ci: pr linting workflow is executed from other workflows * ci: semantic pr workflow requires github pat to run --- .github/workflows/semantic-pull-requests.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/semantic-pull-requests.yaml diff --git a/.github/workflows/semantic-pull-requests.yaml b/.github/workflows/semantic-pull-requests.yaml new file mode 100644 index 0000000..1942820 --- /dev/null +++ b/.github/workflows/semantic-pull-requests.yaml @@ -0,0 +1,22 @@ +name: "Lint PR" + +on: + workflow_call: + secrets: + GIT_HUB_PAT: + description: "GitHub Personal Access Token for authentication" + required: true + +permissions: + pull-requests: write + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-22.04 + steps: + - uses: amannn/action-semantic-pull-request@v5 + with: + wip: true + env: + GITHUB_TOKEN: ${{ secrets.GIT_HUB_PAT }}