Skip to content

chore(deps): upgrade dependencies #92

chore(deps): upgrade dependencies

chore(deps): upgrade dependencies #92

Workflow file for this run

# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
name: auto-approve
on:
pull_request_target:
types:
- opened
- labeled
- ready_for_review
- reopened
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
jobs:
approve:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
env:
PROJEN_APP_ID: ${{ secrets.PROJEN_APP_ID }}
PROJEN_APP_PRIVATE_KEY: ${{ secrets.PROJEN_APP_PRIVATE_KEY }}
GIT_REF: ${{ github.event.pull_request.head.ref }}
GIT_REPO: ${{ github.event.pull_request.head.repo.full_name }}
PR_ID: ${{ github.event.pull_request.number }}
if: contains(github.event.pull_request.labels.*.name, 'auto-approve') && github.event.pull_request.draft == false
steps:
- name: Generate token
id: generate_token
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf
with:
app-id: ${{ env.PROJEN_APP_ID }}
private-key: ${{ env.PROJEN_APP_PRIVATE_KEY }}
- name: Checkout PR
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ env.GIT_REF }}
repository: ${{ env.GIT_REPO }}
- name: Auto-approve PRs by other users as team-cdk-terrain
if: github.event.pull_request.user.login != 'team-cdk-terrain[bot]' && (contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association) || github.actor == 'dependabot[bot]')
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
run: gh pr review $PR_ID --approve
- name: Auto-approve PRs by team-cdk-terrain[bot] as github-actions[bot]
if: github.event.pull_request.user.login == 'team-cdk-terrain[bot]'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr review $PR_ID --approve