ActivityWatch/activitywatch

View on GitHub
.github/workflows/dependabot-automerge.yml

Summary

Maintainability
Test Coverage
name: Dependabot Auto-merge

# NOTE: This workflow relies on a Personal Access Token from the @ActivityWatchBot user
#       See this issue for details: https://github.com/ridedott/merge-me-action/issues/1581

on:
  workflow_run:
    types:
      - completed
    workflows:
      # List all required workflow names here.
      - Build

permissions:
  contents: write
  pull-requests: read

jobs:
  auto_merge:
    name: Auto-merge
    runs-on: ubuntu-latest
    if: github.event.workflow_run.conclusion == 'success' && github.actor == 'dependabot[bot]'

    steps:
      - uses: ridedott/merge-me-action@v2
        with:
          GITHUB_TOKEN: ${{ secrets.AWBOT_GH_TOKEN }}