Skip to content

Commit 909a7f2

Browse files
committed
Updating github-config
1 parent a572015 commit 909a7f2

3 files changed

Lines changed: 57 additions & 0 deletions

File tree

.github/workflows/approve-bot-pr.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,22 @@ jobs:
6767
gh pr merge ${{ needs.download.outputs.pr-number }} --auto --rebase
6868
env:
6969
GITHUB_TOKEN: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
70+
71+
failure:
72+
name: Alert on Failure
73+
runs-on: ubuntu-22.04
74+
needs: [download, approve]
75+
if: ${{ always() && needs.download.result == 'failure' || needs.approve.result == 'failure' }}
76+
steps:
77+
- name: File Failure Alert Issue
78+
uses: paketo-buildpacks/github-config/actions/issue/file@main
79+
with:
80+
token: ${{ secrets.GITHUB_TOKEN }}
81+
repo: ${{ github.repository }}
82+
label: "failure:approve-bot-pr"
83+
comment_if_exists: true
84+
issue_title: "Failure: Approve bot PR workflow"
85+
issue_body: |
86+
Approve bot PR workflow [failed](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
87+
comment_body: |
88+
Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,22 @@ jobs:
4646
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
4747
title: "Updates buildpacks in buildpack.toml"
4848
branch: automation/buildpack.toml/update
49+
50+
failure:
51+
name: Alert on Failure
52+
runs-on: ubuntu-22.04
53+
needs: [update-buildpack-toml]
54+
if: ${{ always() && needs.update-buildpack-toml.result == 'failure' }}
55+
steps:
56+
- name: File Failure Alert Issue
57+
uses: paketo-buildpacks/github-config/actions/issue/file@main
58+
with:
59+
token: ${{ secrets.GITHUB_TOKEN }}
60+
repo: ${{ github.repository }}
61+
label: "failure:update-buildpack-toml"
62+
comment_if_exists: true
63+
issue_title: "Failure: Update Buildpack TOML workflow"
64+
issue_body: |
65+
Update Buildpack TOML workflow [failed](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
66+
comment_body: |
67+
Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}

.github/workflows/update-github-config.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,22 @@ jobs:
6060
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
6161
title: "Updates github-config"
6262
branch: automation/github-config/update
63+
64+
failure:
65+
name: Alert on Failure
66+
runs-on: ubuntu-22.04
67+
needs: [build]
68+
if: ${{ always() && needs.build.result == 'failure' }}
69+
steps:
70+
- name: File Failure Alert Issue
71+
uses: paketo-buildpacks/github-config/actions/issue/file@main
72+
with:
73+
token: ${{ secrets.GITHUB_TOKEN }}
74+
repo: ${{ github.repository }}
75+
label: "failure:update-github-config"
76+
comment_if_exists: true
77+
issue_title: "Failure: Update GitHub config workflow"
78+
issue_body: |
79+
Update GitHub config workflow [failed](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
80+
comment_body: |
81+
Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}

0 commit comments

Comments
 (0)