-
Notifications
You must be signed in to change notification settings - Fork 77
44 lines (40 loc) · 1.48 KB
/
properties.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
name: Generate Spring Boot property migration recipes
on:
workflow_dispatch: {}
schedule:
- cron: 0 11 * * MON
jobs:
update-migrations:
runs-on: ubuntu-latest
if: github.event_name != 'schedule' || github.repository_owner == 'openrewrite'
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- uses: gradle/actions/setup-gradle@v4
# Generate Spring Boot property migrations recipes
- name: Create jar and copy dependencies
run: ./gradlew generatePropertyMigrationRecipes
# Create pull request
- name: Timestamp
run: echo "NOW=$(date +'%Y-%m-%dT%H%M')" >> $GITHUB_ENV
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v7
with:
base: main
branch: migrations/${{ env.NOW }}
title: "[Auto] Spring Boot property migration recipes as of ${{ env.NOW }}"
body: |
[Auto] Spring Boot property migration recipes as of ${{ env.NOW }}.
commit-message: "[Auto] Spring Boot property migration recipes as of ${{ env.NOW }}"
labels: enhancement
- name: Check outputs
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"