Skip to content

Write GitHub Actions workflow files in Kotlin instead of YAML #4586

Write GitHub Actions workflow files in Kotlin instead of YAML

Write GitHub Actions workflow files in Kotlin instead of YAML #4586

# This file was generated using Kotlin DSL (.github/workflows/gradle-wrapper-validation.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/typesafegithub/github-workflows-kt
name: 'Validate Gradle Wrapper'
on:
push: {}
pull_request: {}
merge_group: {}
jobs:
check_yaml_consistency:
name: 'Check YAML consistency'
runs-on: 'ubuntu-latest'
steps:
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v4'
- id: 'step-1'
name: 'Execute script'
run: 'rm ''.github/workflows/gradle-wrapper-validation.yml'' && ''.github/workflows/gradle-wrapper-validation.main.kts'''
- id: 'step-2'
name: 'Consistency check'
run: 'git diff --exit-code ''.github/workflows/gradle-wrapper-validation.yml'''
validation:
name: 'Validation'
runs-on: 'ubuntu-latest'
needs:
- 'check_yaml_consistency'
steps:
- id: 'step-0'
name: 'Checkout Repository'
uses: 'actions/checkout@v4'
- id: 'step-1'
name: 'Validate Wrapper'
uses: 'gradle/wrapper-validation-action@v3'