Skip to content

Commit

Permalink
fix: create PR
Browse files Browse the repository at this point in the history
  • Loading branch information
seblum committed Aug 11, 2024
1 parent 771662d commit 871dcfd
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/CD_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,18 @@ jobs:
git push origin update-version-$TAG_VERSION
-
name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: bump-version-$TAG_VERSION
title: "Bump version to $TAG_VERSION"
body: "This PR updates the version in pyproject.toml to $TAG_VERSION."
base: main
run: |
PR_RESPONSE=$(curl -s -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/pulls \
-d @- << EOF
{
"title": "Bump version to $TAG_VERSION",
"body": "This PR updates the version in pyproject.toml to $TAG_VERSION.",
"head": "update-version-$TAG_VERSION",
"base": "main"
}
EOF
)
echo "Pull Request created: $(echo $PR_RESPONSE | jq -r .html_url)"

0 comments on commit 871dcfd

Please sign in to comment.