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:
|
jobs:
|
||||||
release:
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
|||||||
Reference in New Issue
Block a user