ci: skip releases for testing or documentation PRs
Add a condition to the release workflow to skip execution if the PR is labeled with 'Kind/Testing' or 'Kind/Documentation'. This prevents unnecessary releases for non-functional changes.
This commit is contained in:
@@ -8,7 +8,10 @@ on:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
if: github.event.pull_request.merged == true
|
||||
if: |
|
||||
github.event.pull_request.merged == true &&
|
||||
!contains(github.event.pull_request.labels.*.name, 'Kind/Testing') &&
|
||||
!contains(github.event.pull_request.labels.*.name, 'Kind/Documentation')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
||||
Reference in New Issue
Block a user