-
Notifications
You must be signed in to change notification settings - Fork 21
41 lines (38 loc) · 1.45 KB
/
update-spring-generations.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
# Custom Workflow - not managed by pipeline-builder
name: Update Spring Generations
"on":
schedule:
- cron: 0 2 * * 1-5
workflow_dispatch: {}
jobs:
update:
name: Update Buildpack Dependency
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: generations
uses: docker://ghcr.io/paketo-buildpacks/actions/spring-generations:main
with:
uri: https://api.spring.io
- id: buildpack
name: Update Buildpack Dependency
run: |
#!/usr/bin/env bash
set -euo pipefail
echo "${CONTENT}" > spring-generations.toml
git add spring-generations.toml
git checkout -- .
env:
CONTENT: ${{ steps.generations.outputs.content }}
- uses: peter-evans/create-pull-request@v4
with:
author: ${{ secrets.JAVA_GITHUB_USERNAME }} <${{ secrets.JAVA_GITHUB_USERNAME }}@users.noreply.github.com>
body: Bumps Spring Generations
branch: update/buildpack/spring-generations
commit-message: Bump Spring Generations
delete-branch: true
labels: semver:patch, type:dependency-upgrade
signoff: true
title: Bump Spring Generations
token: ${{ secrets.JAVA_GITHUB_TOKEN }}