Skip to content

Updates available

Updates available #273

# This file was generated using Kotlin DSL (.github/workflows/actions-versions.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: 'Updates available'
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/actions-versions.yaml'' && ''.github/workflows/actions-versions.main.kts'''
- id: 'step-2'
name: 'Consistency check'
run: 'git diff --exit-code ''.github/workflows/actions-versions.yaml'''
updates-available:
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 suggestVersions'
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
run: './gradlew suggestVersions'
- id: 'step-4'
name: 'Create issue'
uses: 'peter-evans/create-issue-from-file@v5'
with:
title: 'New major versions of actions available'
content-filepath: 'build/suggestVersions.md'