Newer
Older
thu-learn-downloader-optimized / .github / workflows / merge.yaml
@github-actions[bot] github-actions[bot] on 26 Jan 2024 676 bytes ci: sync with template repository
name: Merge

on:
  pull_request:

permissions:
  contents: write
  pull-requests: write

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}

jobs:
  check:
    name: Check
    runs-on: ubuntu-latest
    steps:
      - name: Check
        uses: liblaf/template/.github/actions/check@main

  merge:
    name: Merge
    if: github.event.pull_request.user.login == 'dependabot[bot]' ||
      github.event.pull_request.user.login == 'pre-commit-ci[bot]'
    runs-on: ubuntu-latest
    steps:
      - name: Enable Auto-Merge (Squash)
        run: gh pr merge ${{ github.event.pull_request.html_url }} --auto --squash
        env:
          GH_TOKEN: ${{ github.token }}