Skip to content

Regenerate the models #898

Regenerate the models

Regenerate the models #898

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
name: Regenerate the models
jobs:
generate:
runs-on: ubuntu-latest
name: Regenerate the models
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 8
cache: sbt
- name: Setup sbt
uses: sbt/setup-sbt@v1
- run: sbt generateModels
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
commit-message: Regenerated models
title: Regenerated models
add-paths: |
generated-models/src/main/scala/io/github/nafg/mergify/models/generated/*
delete-branch: true