2022-03-30 04:29:49 -04:00
|
|
|
name: "Pull Request: Validate"
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.head_ref }}-pr-validate
|
|
|
|
# cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
2022-03-30 04:35:37 -04:00
|
|
|
pr-metadata:
|
2022-03-30 04:51:01 -04:00
|
|
|
uses: ./.github/workflows/pr-metadata.yaml
|
2022-03-30 04:35:37 -04:00
|
|
|
|
2022-03-30 04:29:49 -04:00
|
|
|
pre-commit-check:
|
2022-03-30 04:52:34 -04:00
|
|
|
uses: truecharts/.github/.github/workflows/pre-commit-check.yaml@main
|
2022-03-30 04:35:37 -04:00
|
|
|
needs:
|
|
|
|
- pr-metadata
|
2022-03-30 04:29:49 -04:00
|
|
|
with:
|
|
|
|
modifiedFiles: ${{ needs.pr-metadata.outputs.addedOrModifiedFiles }}
|
|
|
|
|
|
|
|
#charts-changelog:
|
2022-03-30 04:51:01 -04:00
|
|
|
# uses: ./.github/workflows/charts-changelog.yaml
|
2022-03-30 04:29:49 -04:00
|
|
|
# needs:
|
|
|
|
# - pr-metadata
|
|
|
|
# - pre-commit-check
|
|
|
|
# with:
|
|
|
|
# isRenovatePR: ${{ needs.pr-metadata.outputs.isRenovatePR }}
|
|
|
|
# modifiedCharts: ${{ needs.pr-metadata.outputs.addedOrModifiedCharts }}
|
|
|
|
|
|
|
|
charts-lint:
|
2022-03-30 04:51:01 -04:00
|
|
|
uses: ./.github/workflows/charts-lint.yaml
|
2022-03-30 04:35:37 -04:00
|
|
|
needs:
|
|
|
|
- pr-metadata
|
2022-03-30 04:29:49 -04:00
|
|
|
# - charts-changelog
|
|
|
|
with:
|
|
|
|
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
|
|
|
|
chartChangesDetected: ${{ needs.pr-metadata.outputs.addedOrModified }}
|
|
|
|
|
|
|
|
charts-test:
|
2022-03-30 04:51:01 -04:00
|
|
|
uses: ./.github/workflows/charts-test.yaml
|
2022-03-30 04:29:49 -04:00
|
|
|
needs:
|
2022-03-30 04:35:37 -04:00
|
|
|
- pr-metadata
|
2022-07-22 14:23:01 -04:00
|
|
|
# - charts-changelog
|
2022-03-30 04:29:49 -04:00
|
|
|
- charts-lint
|
|
|
|
with:
|
|
|
|
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
|
|
|
|
chartChangesDetected: ${{ needs.pr-metadata.outputs.addedOrModified }}
|
2022-03-30 06:26:37 -04:00
|
|
|
|
|
|
|
catalog-test:
|
|
|
|
uses: ./.github/workflows/catalog-test.yaml
|
|
|
|
needs:
|
|
|
|
- pr-metadata
|
|
|
|
# - charts-changelog
|
|
|
|
with:
|
|
|
|
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
|
|
|
|
chartChangesDetected: ${{ needs.pr-metadata.outputs.addedOrModified }}
|
2022-11-14 16:30:05 -05:00
|
|
|
|
|
|
|
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
|
2023-01-07 10:29:51 -05:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
|
2022-11-14 16:30:05 -05:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
2022-11-15 05:36:31 -05:00
|
|
|
- name: verbose head git commit message
|
|
|
|
run: echo "$(git show -s --format=%s)"
|
2022-11-14 16:30:05 -05:00
|
|
|
- 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
|
2022-11-15 08:29:27 -05:00
|
|
|
if: needs.print_head_msg.outputs.head-commit-message == 'Commit bumped Chart Version'
|
2022-11-14 16:30:05 -05:00
|
|
|
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
|