adapt pr-validate to skip install check on common updates
This commit is contained in:
@@ -32,21 +32,24 @@ jobs:
|
|||||||
chartChangesDetected: ${{ needs.pr-changes.outputs.addedOrModified }}
|
chartChangesDetected: ${{ needs.pr-changes.outputs.addedOrModified }}
|
||||||
modifiedFiles: ${{ needs.pr-changes.outputs.addedOrModifiedFiles }}
|
modifiedFiles: ${{ needs.pr-changes.outputs.addedOrModifiedFiles }}
|
||||||
modifiedCharts: ${{ needs.pr-changes.outputs.addedOrModifiedCharts }}
|
modifiedCharts: ${{ needs.pr-changes.outputs.addedOrModifiedCharts }}
|
||||||
|
|
||||||
charts-test:
|
charts-test:
|
||||||
uses: ./.github/workflows/charts-test.yaml
|
uses: ./.github/workflows/charts-test.yaml
|
||||||
needs:
|
needs:
|
||||||
- pr-changes
|
- pr-changes
|
||||||
- charts-lint
|
- charts-lint
|
||||||
|
if: ${{ !contains(github.event.pull_request.title, 'container image common') }} # Skip if PR title contains "container image common"
|
||||||
with:
|
with:
|
||||||
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
|
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
|
||||||
chartChangesDetected: ${{ needs.pr-changes.outputs.addedOrModified }}
|
chartChangesDetected: ${{ needs.pr-changes.outputs.addedOrModified }}
|
||||||
modifiedCharts: ${{ needs.pr-changes.outputs.addedOrModifiedCharts }}
|
modifiedCharts: ${{ needs.pr-changes.outputs.addedOrModifiedCharts }}
|
||||||
|
|
||||||
print_head_msg:
|
print_head_msg:
|
||||||
name: print commit message
|
name: Print commit message
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
head-commit-message: ${{ steps.get_head_commit_message.outputs.headCommitMsg }}
|
head-commit-message: ${{ steps.get_head_commit_message.outputs.headCommitMsg }}
|
||||||
|
pr-title: ${{ github.event.pull_request.title }}
|
||||||
steps:
|
steps:
|
||||||
- name: Get repo
|
- name: Get repo
|
||||||
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
|
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
|
||||||
@@ -57,14 +60,19 @@ jobs:
|
|||||||
- name: Print head git commit message
|
- name: Print head git commit message
|
||||||
id: get_head_commit_message
|
id: get_head_commit_message
|
||||||
run: echo "::set-output name=headCommitMsg::$(git show -s --format=%s)"
|
run: echo "::set-output name=headCommitMsg::$(git show -s --format=%s)"
|
||||||
|
- name: Print PR title
|
||||||
|
run: echo "PR title: ${{ github.event.pull_request.title }}"
|
||||||
|
|
||||||
automerge-and-approve:
|
automerge-and-approve:
|
||||||
needs:
|
needs:
|
||||||
- pr-changes
|
- pr-changes
|
||||||
- charts-test
|
|
||||||
- charts-lint
|
- charts-lint
|
||||||
- print_head_msg
|
- print_head_msg
|
||||||
if: ${{ contains( needs.print_head_msg.outputs.head-commit-message, 'By Renovate' ) || contains( needs.print_head_msg.outputs.head-commit-message, '.all-contributorsrc' ) }}
|
if: ${{
|
||||||
|
contains(needs.print_head_msg.outputs.head-commit-message, 'By Renovate') ||
|
||||||
|
contains(needs.print_head_msg.outputs.head-commit-message, '.all-contributorsrc') ||
|
||||||
|
contains(github.event.pull_request.title, 'container image common')
|
||||||
|
}} # Runs if conditions are met
|
||||||
name: Automerge and Approve build
|
name: Automerge and Approve build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|||||||
Reference in New Issue
Block a user