Skip to content

Mark test that require access to the internet #722

Mark test that require access to the internet

Mark test that require access to the internet #722

name: Auto-merge Dependabot PRs
on:
pull_request_target:
branches: [main]
jobs:
#
# Automatically review dependabot PRs and set them to automerge (on successful checks)
#
Automerge:
environment:
name: PR Backport
runs-on: ubuntu-slim
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'Unidata/MetPy'
env:
GH_REPO: ${{ github.repository }}
GH_PR: ${{ github.event.pull_request.number }}
permissions:
contents: write
pull-requests: write
steps:
- name: Check Dependabot metadata
uses: dependabot/fetch-metadata@v2
- name: Create App Token
uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Set auto-merge
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: gh pr merge -R "$GH_REPO" --merge --auto "$GH_PR"
- name: Review PR
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: gh pr review -R "$GH_REPO" --approve "$GH_PR"