25.0.0.10_beta #25
This file contains hidden or 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 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" |