Publish gosdk from 4f8aa44c1c9 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |