Skip to content

chore: fix broken automerge and auto-approve workflows #96

chore: fix broken automerge and auto-approve workflows

chore: fix broken automerge and auto-approve workflows #96

Workflow file for this run

# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
name: automerge
on:
pull_request_target:
types:
- opened
- labeled
- ready_for_review
- reopened
- synchronize
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
automerge:
runs-on: ubuntu-latest
permissions:
contents: read
if: contains(github.event.pull_request.labels.*.name, 'automerge') && github.event.pull_request.draft == false
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- name: Turn on automerge for this PR by a trusted user or bot
if: github.event.pull_request.user.login == 'team-tf-cdk' || contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association) || github.actor == 'dependabot[bot]

Check failure on line 23 in .github/workflows/automerge.yml

View workflow run for this annotation

GitHub Actions / automerge

Invalid workflow file

The workflow is not valid. .github/workflows/automerge.yml (Line: 23, Col: 13): Unexpected symbol: ''dependabot[bot]'. Located at position 181 within expression: github.event.pull_request.user.login == 'team-tf-cdk' || contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association) || github.actor == 'dependabot[bot]
env:
GH_TOKEN: ${{ secrets.PROJEN_GITHUB_TOKEN }}
run: gh pr merge --auto --squash ${{ github.event.pull_request.number }}