From e25c977d6fa831e4c38473744ed45971c61c84f7 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Mon, 14 Nov 2022 22:30:05 +0100 Subject: [PATCH] Update pr-validate.yaml Signed-off-by: Kjeld Schouten-Lebbing --- .github/workflows/pr-validate.yaml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/pr-validate.yaml b/.github/workflows/pr-validate.yaml index 77ca5642c83..e10ee367112 100644 --- a/.github/workflows/pr-validate.yaml +++ b/.github/workflows/pr-validate.yaml @@ -54,3 +54,35 @@ jobs: with: checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }} chartChangesDetected: ${{ needs.pr-metadata.outputs.addedOrModified }} + + print_head_msg: + name: print commit message + runs-on: ubuntu-latest + outputs: + head-commit-message: ${{ steps.get_head_commit_message.outputs.headCommitMsg }} + steps: + - name: Get repo + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} + - name: Print head git commit message + id: get_head_commit_message + run: echo "::set-output name=headCommitMsg::$(git show -s --format=%s)" + + automerge: + needs: + - pr-metadata + - catalog-test + - charts-test + - charts-lint + - print_head_msg + if: ${{ !contains(needs.print_head_msg.outputs.head-commit-message, '[Commit bumped Chart Version]') }} + name: Automerge build + runs-on: ubuntu-latest + steps: + - name: automerge + uses: pascalgn/automerge-action@eb68b061739cb9d81564f8e812d0b3c45f0fb09a # tag=v0.15.5 + env: + GITHUB_TOKEN: "${{ secrets.BOT_TOKEN }}" + UPDATE_RETRIES: 12 + UPDATE_RETRY_SLEEP: 60000