-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (36 loc) · 1.21 KB
/
update-builder-toml.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
name: Update builder.toml and Send Pull Request
on:
schedule:
- cron: '*/15 * * * *'
workflow_dispatch: {}
jobs:
update:
name: Update builder.toml
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Checkout branch
uses: paketo-buildpacks/github-config/actions/pull-request/checkout-branch@main
with:
branch: "automation/builder-toml"
- name: Update builder.toml
uses: paketo-buildpacks/github-config/actions/builder/update@main
- name: Git commit
id: commit
uses: paketo-buildpacks/github-config/actions/pull-request/create-commit@main
with:
message: "Update builder.toml"
pathspec: "builder.toml"
- name: Git push
if: ${{ steps.commit.outputs.commit_sha != '' }}
uses: paketo-buildpacks/github-config/actions/pull-request/push-branch@main
with:
branch: "automation/builder-toml"
- name: Open Pull Request
if: ${{ steps.commit.outputs.commit_sha != '' }}
uses: paketo-buildpacks/github-config/actions/pull-request/open@main
with:
token: ${{ secrets.GH_PAT }}
title: "Updating builder.toml"
branch: "automation/builder-toml"