forked from paketo-buildpacks/nodejs
-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1.25 KB
/
update-buildpack-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
44
name: Update buildpack.toml
on:
schedule:
- cron: '*/15 * * * *'
workflow_dispatch: {}
jobs:
update-buildpack-toml:
runs-on: ubuntu-latest
name: Update buildpack.toml
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout Branch
uses: paketo-buildpacks/github-config/actions/pull-request/checkout-branch@main
with:
branch: automation/buildpack.toml/update
- name: Update buildpack.toml
uses: paketo-buildpacks/github-config/actions/buildpack/update@main
- name: Commit
id: commit
uses: paketo-buildpacks/github-config/actions/pull-request/create-commit@main
with:
message: "Updating buildpacks in buildpack.toml"
pathspec: "."
- name: Push Branch
if: ${{ steps.commit.outputs.commit_sha != '' }}
uses: paketo-buildpacks/github-config/actions/pull-request/push-branch@main
with:
branch: automation/buildpack.toml/update
- 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: "Updates buildpacks in buildpack.toml"
branch: automation/buildpack.toml/update