Skip to content

Create action update PRs #100

Create action update PRs

Create action update PRs #100

# This file was generated using Kotlin DSL (.github/workflows/create-action-update-prs.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: 'Create action update PRs'
on:
schedule:
- cron: '0 7 * * 4'
workflow_dispatch: {}
jobs:
check_yaml_consistency:
name: 'Check YAML consistency'
runs-on: 'ubuntu-latest'
if: '${{ github.repository_owner == ''typesafegithub'' || github.event_name != ''schedule'' }}'
steps:
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v4'
- id: 'step-1'
name: 'Execute script'
run: 'rm ''.github/workflows/create-action-update-prs.yaml'' && ''.github/workflows/create-action-update-prs.main.kts'''
- id: 'step-2'
name: 'Consistency check'
run: 'git diff --exit-code ''.github/workflows/create-action-update-prs.yaml'''
check-updates-and-create-prs:
runs-on: 'ubuntu-latest'
needs:
- 'check_yaml_consistency'
if: '${{ github.repository_owner == ''typesafegithub'' || github.event_name != ''schedule'' }}'
steps:
- id: 'step-0'
uses: 'actions/checkout@v4'
- id: 'step-1'
name: 'Set up JDK'
uses: 'actions/setup-java@v4'
with:
java-version: '11'
distribution: 'zulu'
- id: 'step-2'
uses: 'gradle/actions/setup-gradle@v3'
- id: 'step-3'
name: 'Run logic'
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
run: './gradlew createActionUpdatePRs'