From d187d747e4bf026feea339d5e3189736e90aae4e Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sun, 15 Sep 2024 17:48:35 -0700 Subject: [PATCH] ci: Switch to github actions based semantic PRs (#1540) --- .github/workflows/semantic-prs.yml | 22 ++++++++++++++++++++++ .github/workflows/semantic-release.yml | 10 +++++----- 2 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/semantic-prs.yml 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