Skip to content

Commit

Permalink
Updating github-config
Browse files Browse the repository at this point in the history
  • Loading branch information
paketo-bot committed Jul 21, 2022
1 parent f1a1caf commit 30b07ff
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@
- name: good first issue
description: A good first issue to get started with
color: d3fc03
- name: "failure:release"
description: An issue filed automatically when a release workflow run fails
color: f00a0a
- name: "failure:push"
description: An issue filed automatically when a push buildpackage workflow run fails
color: f00a0a
4 changes: 2 additions & 2 deletions .github/workflows/approve-bot-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
- id: pr-data
run: |
echo "::set-output name=author::$(cat event.json | jq -r '.pull_request.user.login')"
echo "::set-output name=number::$(cat event.json | jq -r '.pull_request.number')"
echo "::set-output name=author::$(jq -r '.pull_request.user.login' event.json)"
echo "::set-output name=number::$(jq -r '.pull_request.number' event.json)"
approve:
name: Approve Bot PRs
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,22 @@ jobs:
RELEASE_ID: ${{ steps.publish.outputs.id }}
RELEASE_BODY: ${{ needs.smoke.outputs.release_notes }}
GITHUB_TOKEN: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}

failure:
name: Alert on Failure
runs-on: ubuntu-latest
needs: [ smoke, release ]
if: ${{ always() && needs.smoke.result == 'failure' || needs.release.result == 'failure' }}
steps:
- name: File Failure Alert Issue
uses: paketo-buildpacks/github-config/actions/issue/file@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.repository }}
label: "failure:release"
comment_if_exists: true
issue_title: "Failure: Create Release workflow"
issue_body: |
Create Release workflow [failed](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
comment_body: |
Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
21 changes: 21 additions & 0 deletions .github/workflows/test-builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test Builder

on:
workflow_dispatch: {}

jobs:

smoke:
name: Smoke Test
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x

- name: Checkout
uses: actions/checkout@v3

- name: Run Smoke Tests
run: ./scripts/smoke.sh
2 changes: 1 addition & 1 deletion scripts/.util/tools.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"pack": "v0.26.0"
"pack": "v0.27.0"
}

0 comments on commit 30b07ff

Please sign in to comment.