ci(test): checking if pr-anchor adds a comment to PRs add hardcoded anchor trying new dosh-llc pr comment Reviewed-on: #1 Co-authored-by: GregoryDosh <authentik@gregorydosh.com> Co-committed-by: GregoryDosh <authentik@gregorydosh.com>
46 lines
1.7 KiB
YAML
46 lines
1.7 KiB
YAML
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
# SPDX-FileCopyrightText: 2025 Dosh LLC
|
|
---
|
|
name: Validate Renovate Configuration
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
validate-renovate-configuration:
|
|
name: Validate `default.json5`
|
|
runs-on: docker
|
|
container:
|
|
image: git.auengun.net/homelab/image-renovate:42.13.3-full@sha256:b144d87bc99d7b5a3676434fbbb0609a2dab7973f6de356847a2eca03fbd74e7
|
|
steps:
|
|
- name: Clone Repo into Workspace
|
|
uses: https://git.auengun.net/homelab/action-common-setup@3e92f643023a84a6b2bdc495a271846c5e98c949 # 1.5.0
|
|
|
|
- name: Renovate Configuration Validation
|
|
if: ${{ github.event_name == 'pull_request' && !cancelled() }}
|
|
shell: bash
|
|
run: |
|
|
set +e
|
|
renovate-config-validator default.json5 2>&1 | tee renovate.log
|
|
RESULT="$?"
|
|
set -e
|
|
{
|
|
echo "## Renovate Configuration Validation 🤖 `[ "$RESULT" -eq "0" ] && echo "✅" || echo "❌ (exit code: $RESULT)"`"
|
|
echo ""
|
|
echo "<details `[ "$RESULT" -ne "0" ] && echo "open"`>"
|
|
echo ""
|
|
echo "<summary>Shell Output</summary>"
|
|
echo ""
|
|
echo "\`\`\`json"
|
|
cat renovate.log
|
|
echo "\`\`\`"
|
|
echo ""
|
|
echo "</details>"
|
|
} 2>&1 >> "${{github.workspace}}/.pr-comment.md"
|
|
echo "Saved to '${{github.workspace}}/.pr-comment.md'"
|
|
exit $RESULT
|
|
|
|
- name: Post/Update PR Comment
|
|
if: ${{ github.event_name == 'pull_request' && !cancelled() }}
|
|
continue-on-error: true
|
|
uses: https://git.auengun.net/dosh-llc/action-pr-comment@86fe8f07115bd25af57b0ca15aec9b4dccdbcf8d # 0.0.3
|