Skip to content

chore: update local data #261

chore: update local data

chore: update local data #261

Workflow file for this run

name: automerge
on:
pull_request_target:
types:
- opened
- labeled
- ready_for_review
- reopened
- synchronize
concurrency: ${{ github.workflow }}-${{ github.head_ref }}
env:
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 }}
jobs:
automerge:
runs-on: ubuntu-latest
permissions:
contents: read
if: contains(github.event.pull_request.labels.*.name, 'automerge') && !contains(github.event.pull_request.labels.*.name, 'do-not-merge') && github.event.pull_request.draft == false
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ env.GIT_REF }}
repository: ${{ env.GIT_REPO }}
- 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]' || github.actor == 'hashicorp-tsccr[bot]'
env:
GH_TOKEN: ${{ secrets.GH_WORKFLOW_TOKEN }}
run: gh pr merge --auto --squash $PR_ID