skip install tests on common updates
This commit is contained in:
@@ -69,10 +69,15 @@ jobs:
|
|||||||
if: inputs.chartChangesDetected == 'true'
|
if: inputs.chartChangesDetected == 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
# Get the PR title
|
skip_prefix='fix(helm-deps): update chart common'
|
||||||
PR_TITLE="${{ github.event.pull_request.title }}"
|
pr_title='${{ github.event.pull_request.title }}'
|
||||||
# Check if the PR title contains "chart common"
|
commit_title="$(git show -s --format=%s)"
|
||||||
if [[ "$PR_TITLE" == *"chart common"* ]]; then
|
|
||||||
|
echo "PR title: ${pr_title}"
|
||||||
|
echo "Commit title: ${commit_title}"
|
||||||
|
|
||||||
|
if [[ "$pr_title" == "$skip_prefix"* || "$commit_title" == "$skip_prefix"* ]]; then
|
||||||
|
echo "Skipping install tests for helm-deps common update; linting only"
|
||||||
echo "charts1=[]" >> $GITHUB_OUTPUT
|
echo "charts1=[]" >> $GITHUB_OUTPUT
|
||||||
echo "charts2=[]" >> $GITHUB_OUTPUT
|
echo "charts2=[]" >> $GITHUB_OUTPUT
|
||||||
echo "charts3=[]" >> $GITHUB_OUTPUT
|
echo "charts3=[]" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user