ci: Switch to github actions based semantic PRs (#1540)
This commit is contained in:
@@ -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 }}
|
||||||
@@ -1,17 +1,17 @@
|
|||||||
---
|
---
|
||||||
name: Semantic Release
|
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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
workflow_dispatch:
|
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:
|
jobs:
|
||||||
get-next-version:
|
get-next-version:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user