Skip to content

Commit 7cdaca5

Browse files
paketo-botpaketo-bot
andauthored
Update github-config to d745358 (paketo-buildpacks#109)
Co-authored-by: paketo-bot <[email protected]>
1 parent 6f289a8 commit 7cdaca5

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
@@ -19,3 +19,23 @@ jobs:
1919
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true
2020
- name: Run Integration Tests
2121
run: ./scripts/integration.sh
22+
23+
approve:
24+
name: Auto Approve
25+
runs-on: ubuntu-latest
26+
needs: integration
27+
steps:
28+
- name: Parse Author and Number
29+
id: event
30+
run: |
31+
echo "::set-output name=author::$(jq -r .pull_request.user.login ${{ github.event_path }})"
32+
echo "::set-output name=number::$(jq -r .number ${{ github.event_path }})"
33+
- name: Checkout
34+
uses: actions/checkout@v2
35+
- name: Approve
36+
uses: paketo-buildpacks/github-config/actions/pull-request/approve@master
37+
with:
38+
user: paketo-bot
39+
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
40+
author: ${{ steps.event.outputs.author }}
41+
number: ${{ steps.event.outputs.number }}

0 commit comments

Comments
 (0)