Skip to content

Update aws-actions/configure-aws-credentials action to v4 #49

Update aws-actions/configure-aws-credentials action to v4

Update aws-actions/configure-aws-credentials action to v4 #49

Workflow file for this run

name: Approve
on:
pull_request:
types: [labeled]
jobs:
approve:
runs-on: ubuntu-latest
timeout-minutes: 1
if: >-
${{
github.event.label.name == 'Bypass approve' &&
github.event.pull_request.user.login == 'na2na-p'
}}
env:
NUMBER: ${{ github.event.number }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Generate github token
id: generate_token
uses: ./.github/actions/github-app-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- name: Approve
run: gh pr review ${{ env.NUMBER }} --approve
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}