Skip to content

Release Supabase CLI (Beta) #252

Release Supabase CLI (Beta)

Release Supabase CLI (Beta) #252

Workflow file for this run

name: Auto-merge Beta
on:
pull_request:
branches:
- main
paths:
- 'supabase-beta.json'
permissions:
pull-requests: write
contents: write
jobs:
merge:
runs-on: ubuntu-latest
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- id: diff
# This step will also throw an error if more than 1 file is changed.
if: ${{ startsWith(github.head_ref, 'release/') }}
run: echo "files=$(gh pr diff --name-only $PR_URL)" >> $GITHUB_OUTPUT
- if: ${{ steps.diff.outputs.files == 'supabase-beta.json' }}
run: |
gh pr review --approve "$PR_URL"
gh pr merge -d -s "$PR_URL"