diff --git a/.github/workflows/semantic-prs.yml b/.github/workflows/semantic-prs.yml new file mode 100644 index 00000000..c6a9c862 --- /dev/null +++ b/.github/workflows/semantic-prs.yml @@ -0,0 +1,22 @@ +--- +name: Semantic PR + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + - reopened + +permissions: + pull-requests: read + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml index 4ad40ffe..29379a71 100644 --- a/.github/workflows/semantic-release.yml +++ b/.github/workflows/semantic-release.yml @@ -1,17 +1,17 @@ --- name: Semantic Release -permissions: - contents: write # To be able to publish a GitHub release - issues: write # To be able to comment on released issues - pull-requests: write # To be able to comment on released pull requests - on: push: branches: - main workflow_dispatch: +permissions: + contents: write # To be able to publish a GitHub release + issues: write # To be able to comment on released issues + pull-requests: write # To be able to comment on released pull requests + jobs: get-next-version: runs-on: ubuntu-latest