Skip to content

Commit aed9339

Browse files
paketo-botryanmoran
authored andcommitted
Update github-config to d745358
1 parent 16ef3d9 commit aed9339

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/test-pull-request.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,23 @@ jobs:
3535
run: ./scripts/integration.sh
3636
env:
3737
GIT_TOKEN: ${{ github.token }}
38+
39+
approve:
40+
name: Auto Approve
41+
runs-on: ubuntu-latest
42+
needs: integration
43+
steps:
44+
- name: Parse Author and Number
45+
id: event
46+
run: |
47+
echo "::set-output name=author::$(jq -r .pull_request.user.login ${{ github.event_path }})"
48+
echo "::set-output name=number::$(jq -r .number ${{ github.event_path }})"
49+
- name: Checkout
50+
uses: actions/checkout@v2
51+
- name: Approve
52+
uses: paketo-buildpacks/github-config/actions/pull-request/approve@master
53+
with:
54+
user: paketo-bot
55+
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
56+
author: ${{ steps.event.outputs.author }}
57+
number: ${{ steps.event.outputs.number }}

0 commit comments

Comments
 (0)