Skip to content

Bump pypa/gh-action-pypi-publish from 1.10.1 to 1.10.2 #1115

Bump pypa/gh-action-pypi-publish from 1.10.1 to 1.10.2

Bump pypa/gh-action-pypi-publish from 1.10.1 to 1.10.2 #1115

name: dependabot-auto-merge
on: [push, pull_request]
jobs:
dependabot:
name: "Dependabot"
permissions: write-all
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}} # Detect that the PR author is dependabot
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL" # Use Github CLI to merge automatically the PR
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-approve for Dependabot PRs
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}