Skip to content

Publish gosdk from 3ad939f04d5 #1

Publish gosdk from 3ad939f04d5

Publish gosdk from 3ad939f04d5 #1

Workflow file for this run

name: Create PR from Sync branch
on:
push:
branches:
- "sync/**"
permissions:
contents: write
pull-requests: write
actions: write
jobs:
create-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create Pull Request using gh CLI
id: create_pr
run: |
PR_URL=$(gh pr create --title "Sync: ${{ github.ref_name }}" --body "Automated sync PR from branch ${{ github.ref_name }}" --head "${{ github.ref_name }}" --base main || true)
echo "PR created: $PR_URL"
echo "pr_url=$PR_URL" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable Auto-Merge
run: |
gh pr merge --auto --squash "${{ steps.create_pr.outputs.pr_url }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}