Skip to content

RefreshVersions

RefreshVersions #12

# This file was generated using Kotlin DSL (.github/workflows/refreshVersions.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/krzema12/github-actions-kotlin-dsl
name: RefreshVersions
on:
schedule:
- cron: '0 7 * * 1'
workflow_dispatch:
jobs:
"check_yaml_consistency":
runs-on: "ubuntu-latest"
steps:
- id: step-0
name: Check out
uses: actions/checkout@v3
- id: step-1
name: Execute script
run: rm '.github/workflows/refreshVersions.yaml' && '.github/workflows/refreshVersions.main.kts'
- id: step-2
name: Consistency check
run: git diff --exit-code '.github/workflows/refreshVersions.yaml'
"Refresh-Versions":
runs-on: "ubuntu-latest"
needs:
- "check_yaml_consistency"
steps:
- id: step-0
name: check-out
uses: actions/checkout@v3
with:
ref: main
- id: step-1
name: setup-java
uses: actions/setup-java@v3
with:
java-version: 17
distribution: adopt
- id: step-2
name: create-branch
uses: peterjgrainger/action-create-branch@v2.2.0
with:
branch: dependency-update
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: step-3
name: gradle refreshVersions
uses: gradle/gradle-build-action@v2
with:
arguments: refreshVersions
- id: step-4
name: Commit
uses: EndBug/add-and-commit@v9
with:
author_name: GitHub Actions
author_email: noreply@github.com
message: Refresh versions.properties
new_branch: dependency-update
push: --force --set-upstream origin dependency-update
- id: step-5
name: Pull Request
uses: repo-sync/pull-request@v2
with:
source_branch: dependency-update
destination_branch: main
pr_title: Upgrade gradle dependencies
pr_body: '[refreshVersions](https://github.com/jmfayard/refreshVersions) has found those library updates!'
pr_draft: true
github_token: ${{ secrets.GITHUB_TOKEN }}