Regenerate the models #898
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |