Skip to content

Commit 83465a4

Browse files
committed
Updating github-config
1 parent c7a657b commit 83465a4

2 files changed

Lines changed: 23 additions & 17 deletions

File tree

.github/workflows/update-builder-toml.yml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v6
22+
with:
23+
fetch-depth: 0
2224

2325
- name: Get Builders
2426
id: get-builders
@@ -28,7 +30,7 @@ jobs:
2830
if [ -f ${{ env.BUILDERS_FILEPATH }} ]; then
2931
builders=$(jq -c '.builders' ${{ env.BUILDERS_FILEPATH }})
3032
else
31-
# Strip off the Github org prefix from repo name
33+
# Strip off the GitHub org prefix from repo name
3234
# paketo-buildpacks/builder-with-some-name --> builder-with-some-name
3335
registry_repo=$(echo "${{ github.repository }}" | sed 's/^.*\///')
3436
builders=$(jq -n -c '[
@@ -51,11 +53,27 @@ jobs:
5153
echo "builders=$builders"
5254
echo "builders=$builders" >> "$GITHUB_OUTPUT"
5355
56+
- name: Checkout branch
57+
uses: paketo-buildpacks/github-config/actions/pull-request/checkout-branch@main
58+
with:
59+
branch: "automation/builder-toml-update"
60+
61+
- name: Rebase branch
62+
uses: paketo-buildpacks/github-config/actions/pull-request/rebase-branch@main
63+
with:
64+
keyid: ${{ secrets.PAKETO_BOT_GPG_SIGNING_KEY_ID }}
65+
key: ${{ secrets.PAKETO_BOT_GPG_SIGNING_KEY }}
66+
fail_on_rebase_failure: true
67+
68+
- name: Git push
69+
uses: paketo-buildpacks/github-config/actions/pull-request/push-branch@main
70+
with:
71+
branch: "automation/builder-toml-update"
72+
force: true
73+
5474
update:
5575
name: Update builder.toml
5676
runs-on: ubuntu-24.04
57-
outputs:
58-
commit_sha: ${{ steps.commit.outputs.commit_sha }}
5977
needs: preparation
6078
strategy:
6179
max-parallel: 1
@@ -65,20 +83,13 @@ jobs:
6583
steps:
6684
- name: Check out
6785
uses: actions/checkout@v6
68-
with:
69-
fetch-depth: 0
86+
7087

7188
- name: Checkout branch
7289
uses: paketo-buildpacks/github-config/actions/pull-request/checkout-branch@main
7390
with:
7491
branch: "automation/builder-toml-update"
7592

76-
- name: Rebase branch
77-
uses: paketo-buildpacks/github-config/actions/pull-request/rebase-branch@main
78-
with:
79-
keyid: ${{ secrets.PAKETO_BOT_GPG_SIGNING_KEY_ID }}
80-
key: ${{ secrets.PAKETO_BOT_GPG_SIGNING_KEY }}
81-
8293
- name: Update builder.toml
8394
uses: paketo-buildpacks/github-config/actions/builder/update@main
8495
with:
@@ -100,15 +111,10 @@ jobs:
100111
with:
101112
branch: "automation/builder-toml-update"
102113

103-
- name: Output commit sha
104-
if: ${{ steps.commit.outputs.commit_sha != '' }}
105-
run: echo "commit_sha=${{ steps.commit.outputs.commit_sha }}" >> "$GITHUB_OUTPUT"
106-
107114
open-pull-request:
108115
name: Open pull request
109116
runs-on: ubuntu-24.04
110117
needs: update
111-
if: ${{ needs.update.outputs.commit_sha != '' }}
112118
steps:
113119
- name: Check out
114120
uses: actions/checkout@v6

scripts/.util/tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"crane": "v0.21.3",
2+
"crane": "v0.21.4",
33
"pack": "v0.40.2"
44
}

0 commit comments

Comments
 (0)