name: Auto Merge PRs

on:
  schedule:
    - cron: '0 */6 * * *'
  workflow_dispatch:

jobs:
  auto-merge:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      
      - name: Auto merge develop PRs
        run: |
          bash scripts/auto_merge_prs.sh develop
      
      - name: Auto merge main PRs (release only)
        run: |
          bash scripts/auto_merge_prs.sh main
