Matrix Docker Ansible eploy
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

66 行
1.9 KiB

  1. # SPDX-FileCopyrightText: 2026 Slavi Pantaleev
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. name: Renovate smoke test
  6. on: # yamllint disable-line rule:truthy
  7. push:
  8. paths:
  9. - '.github/renovate.json'
  10. - '.github/workflows/renovate-smoke-test.yml'
  11. - '.github/workflows/renovate.yml'
  12. pull_request:
  13. paths:
  14. - '.github/renovate.json'
  15. - '.github/workflows/renovate-smoke-test.yml'
  16. - '.github/workflows/renovate.yml'
  17. workflow_dispatch:
  18. permissions:
  19. contents: read
  20. jobs:
  21. validate:
  22. name: Validate config with the pinned Renovate image
  23. runs-on: ubuntu-latest
  24. # Same-repository pull requests already run via the push event;
  25. # run pull_request jobs only for pull requests from forks.
  26. if: >-
  27. github.event_name != 'pull_request'
  28. || github.event.pull_request.head.repo.full_name != github.repository
  29. steps:
  30. - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
  31. - name: Resolve the pinned Renovate version
  32. id: renovate_version
  33. shell: bash
  34. run: |
  35. set -euo pipefail
  36. mapfile -t versions < <(
  37. sed -n "s/^ MATRIX_RENOVATE_VERSION: '\([^']*\)'$/\1/p" \
  38. .github/workflows/renovate.yml
  39. )
  40. if (( ${#versions[@]} != 1 )) || [[ -z "${versions[0]}" ]]; then
  41. echo 'Could not resolve exactly one pinned Renovate version' >&2
  42. exit 1
  43. fi
  44. echo "version=${versions[0]}" >> "$GITHUB_OUTPUT"
  45. - name: Validate the Renovate configuration
  46. env:
  47. RENOVATE_VERSION: ${{ steps.renovate_version.outputs.version }}
  48. run: |
  49. docker run --rm \
  50. --volume "$GITHUB_WORKSPACE:/workspace:ro" \
  51. --workdir /workspace \
  52. --entrypoint renovate-config-validator \
  53. "ghcr.io/renovatebot/renovate:$RENOVATE_VERSION" \
  54. --strict