Skip to content

updates to 26.0.0.7-beta blog -2nd draft #131

updates to 26.0.0.7-beta blog -2nd draft

updates to 26.0.0.7-beta blog -2nd draft #131

name: Create Automatic PR for release blogs
on:
push:
branches:
- '**-post'
jobs:
create_pr:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create Pull Request using GitHub CLI for release blogs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
branch_name="${GITHUB_REF#refs/heads/}"
echo "Creating PR from $branch_name to draft"
gh pr create \
--head "$branch_name" \
--base "draft" \
--title "Update $branch_name into draft" \
--body "This is an auto-generated PR by github actions to update changes from $branch_name into draft." \
--reviewer "navaneethsnair1" \
|| echo "PR creation failed or PR already exists"