|
| 1 | +# Copyright 2020-2025 Björn Kautler |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +# This file was generated using Kotlin DSL (.github/workflows/check-all-workflow-yaml-consistency.main.kts). |
| 16 | +# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file. |
| 17 | +# Generated with https://github.com/typesafegithub/github-workflows-kt |
| 18 | + |
| 19 | +name: 'Check all Workflow YAML Consistency' |
| 20 | +on: |
| 21 | + push: {} |
| 22 | + pull_request: {} |
| 23 | +concurrency: |
| 24 | + group: '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}' |
| 25 | + cancel-in-progress: true |
| 26 | +jobs: |
| 27 | + check_yaml_consistency: |
| 28 | + name: 'Check YAML consistency' |
| 29 | + runs-on: 'ubuntu-latest' |
| 30 | + steps: |
| 31 | + - id: 'step-0' |
| 32 | + name: 'Check out' |
| 33 | + uses: 'actions/checkout@v4' |
| 34 | + - id: 'step-1' |
| 35 | + name: 'Execute script' |
| 36 | + run: 'rm ''.github/workflows/check-all-workflow-yaml-consistency.yaml'' && ''.github/workflows/check-all-workflow-yaml-consistency.main.kts''' |
| 37 | + - id: 'step-2' |
| 38 | + name: 'Consistency check' |
| 39 | + run: 'git diff --exit-code ''.github/workflows/check-all-workflow-yaml-consistency.yaml''' |
| 40 | + check_all_workflow_yaml_consistency: |
| 41 | + name: 'Check all Workflow YAML Consistency' |
| 42 | + runs-on: 'ubuntu-latest' |
| 43 | + needs: |
| 44 | + - 'check_yaml_consistency' |
| 45 | + steps: |
| 46 | + - id: 'step-0' |
| 47 | + name: 'Configure Git' |
| 48 | + run: 'git config --global core.autocrlf input' |
| 49 | + - id: 'step-1' |
| 50 | + name: 'Checkout' |
| 51 | + uses: 'actions/checkout@v4' |
| 52 | + - id: 'step-2' |
| 53 | + name: 'Regenerate all Workflow YAMLs' |
| 54 | + run: 'find .github/workflows -mindepth 1 -maxdepth 1 -name ''*.main.kts'' -exec {} \;' |
| 55 | + - id: 'step-3' |
| 56 | + name: 'Check for Modifications' |
| 57 | + run: |- |
| 58 | + git add --intent-to-add . |
| 59 | + git diff --exit-code |
0 commit comments