Skip to content

ci: Exempt Dependabot PRs from PR title validation #290

ci: Exempt Dependabot PRs from PR title validation

ci: Exempt Dependabot PRs from PR title validation #290

---
name: Validate Blueprint YAML
# yamllint disable-line rule:truthy
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
code_scan:
name: Validate Blueprint YAML
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v6
with:
fetch-depth: '0'
- name: Get changed files
id: changed
if: github.event_name == 'pull_request'
uses: step-security/changed-files@v47.0.5
with:
files: 'nspanel_easy_blueprint.yaml'
- name: Set up Python
if: github.event_name != 'pull_request' || steps.changed.outputs.any_changed == 'true'
uses: actions/setup-python@v6.2.0
with:
python-version: "3.11"
- name: Install dependencies
if: github.event_name != 'pull_request' || steps.changed.outputs.any_changed == 'true'
run: pip install -r .github/requirements.txt
- name: Validate nspanel_easy_blueprint.yaml
if: github.event_name != 'pull_request' || steps.changed.outputs.any_changed == 'true'
run: yamllint -c "./.rules/yamllint.yml" nspanel_easy_blueprint.yaml
all-checks-passed:
name: Validate Blueprint YAML / All checks passed
runs-on: ubuntu-latest
needs: code_scan
if: always()
steps:
- name: Check result
run: |
echo "code_scan: ${{ needs.code_scan.result }}"
case "${{ needs.code_scan.result }}" in
success|skipped) exit 0 ;;
*) exit 1 ;;
esac
...