Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

feat: adds a validation hook #54

feat: adds a validation hook

feat: adds a validation hook #54

# Copyright 2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: dependabot
on:
pull_request_target:
types:
- opened
permissions:
pull-requests: write
contents: write
defaults:
run:
shell: bash
jobs:
enable-automerge:
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]'}}
runs-on: ubuntu-22.04
steps:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}