Files
truecharts/.github/workflows/pr-validate.yaml
TrueCharts Bot dfdd6b15a7 chore(deps): update pascalgn/automerge-action action to v0.16.0 by renovate (#17059)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[pascalgn/automerge-action](https://togithub.com/pascalgn/automerge-action)
| action | minor | `v0.15.6` -> `v0.16.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>pascalgn/automerge-action (pascalgn/automerge-action)</summary>

###
[`v0.16.0`](https://togithub.com/pascalgn/automerge-action/releases/tag/v0.16.0):
Release 0.16.0

[Compare
Source](https://togithub.com/pascalgn/automerge-action/compare/v0.15.6...v0.16.0)

- Fix README
[#&#8203;240](https://togithub.com/pascalgn/automerge-action/issues/240)
- Use GITHUB_SERVER_URL environment variable
[#&#8203;238](https://togithub.com/pascalgn/automerge-action/issues/238)
-   Update dependencies

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjcuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
2024-01-09 01:45:20 +01:00

90 lines
2.9 KiB
YAML

name: "Pull Request: Validate"
on:
pull_request:
concurrency:
group: ${{ github.head_ref }}-pr-validate
# cancel-in-progress: true
jobs:
pr-changes:
name: Collect PR changes
runs-on: ubuntu-latest
outputs:
addedOrModified: ${{ steps.collect-changes.outputs.changesDetected }}
addedOrModifiedFiles: ${{ steps.collect-changes.outputs.addedOrModifiedFiles }}
addedOrModifiedCharts: ${{ steps.collect-changes.outputs.addedOrModifiedCharts }}
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Collect changes
id: collect-changes
uses: ./.github/actions/collect-changes
charts-lint:
uses: ./.github/workflows/charts-lint.yaml
needs:
- pr-changes
with:
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
chartChangesDetected: ${{ needs.pr-changes.outputs.addedOrModified }}
modifiedFiles: ${{ needs.pr-changes.outputs.addedOrModifiedFiles }}
modifiedCharts: ${{ needs.pr-changes.outputs.addedOrModifiedCharts }}
charts-test:
uses: ./.github/workflows/charts-test.yaml
needs:
- pr-changes
- charts-lint
with:
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
chartChangesDetected: ${{ needs.pr-changes.outputs.addedOrModified }}
modifiedCharts: ${{ needs.pr-changes.outputs.addedOrModifiedCharts }}
catalog-test:
uses: ./.github/workflows/catalog-test.yaml
needs:
- pr-changes
with:
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
chartChangesDetected: ${{ needs.pr-changes.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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: verbose head git commit message
run: echo "$(git show -s --format=%s)"
- name: Print head git commit message
id: get_head_commit_message
run: echo "::set-output name=headCommitMsg::$(git show -s --format=%s)"
automerge-and-approve:
needs:
- pr-changes
- catalog-test
- charts-test
- charts-lint
- print_head_msg
if: ${{ contains( needs.print_head_msg.outputs.head-commit-message, 'By Renovate' ) }}
name: Automerge and Approve build
runs-on: ubuntu-latest
steps:
- uses: hmarr/auto-approve-action@v3
with:
github-token: "${{ secrets.PERS_PAT }}"
- name: automerge
uses: pascalgn/automerge-action@4346d0b231a3ff92a91b825b9e4a22370f0263af # v0.16.0
env:
GITHUB_TOKEN: "${{ secrets.BOT_TOKEN }}"
UPDATE_RETRIES: 12
UPDATE_RETRY_SLEEP: 60000
MERGE_METHOD: squash