-
Notifications
You must be signed in to change notification settings - Fork 239
35 lines (31 loc) · 1.07 KB
/
conventional-commits.yml
File metadata and controls
35 lines (31 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Conventional Commits Validation
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened
- edited
merge_group:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }} # Ensure that only one instance of this workflow is running per Pull Request or ref
cancel-in-progress: true # Cancel any previous runs of this workflow
jobs:
validate-commits:
if: ${{ github.repository == 'open-telemetry/opentelemetry-ruby-contrib' }}
name: Conventional Commits Validation
runs-on: ubuntu-24.04
steps:
# restrict checks to pull requests to avoid issues blocking the merge queue
- if: ${{ github.event_name == 'pull_request' }}
uses: dev-build-deploy/commit-me@27d14296ec218488c543616d9128d7e75ab7463a # v1.5.3
env:
FORCE_COLOR: 3
with:
token: ${{ secrets.GITHUB_TOKEN }}
include-commits: false
update-labels: false
config: ".commit-me.json"