Browse Source

Set proper branch name when creating PR for dev version bump.

Fabien Lelaquais 2 months ago
parent
commit
290d4040fb
1 changed files with 5 additions and 1 deletions
  1. 5 1
      .github/workflows/build-and-release.yml

+ 5 - 1
.github/workflows/build-and-release.yml

@@ -46,6 +46,7 @@ jobs:
         taipy_VERSION: ${{ steps.version-setup.outputs.taipy_VERSION }}
         NEXT_taipy_VERSION: ${{ steps.version-setup.outputs.NEXT_taipy_VERSION }}
         LATEST_TAIPY_VERSION: ${{ steps.version-setup.outputs.LATEST_TAIPY_VERSION }}
+        BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }}
     steps:
       - uses: actions/checkout@v4
       - name: Extract branch name
@@ -284,7 +285,10 @@ jobs:
 
       - name: Create pull request
         if: github.event.inputs.release_type == 'dev'
-        run: gh pr create -B develop -H "feature/update-dev-version-${{ github.run_id }}" --title 'Update Dev Version' --body 'Created by Github workflow build-and-release'
+        run: gh pr create -B ${{ needs.fetch-versions.outputs.BRANCH_NAME }} \
+             -H "feature/update-dev-version-${{ github.run_id }}" \
+             --title 'Update Dev Version' \
+             --body 'Created by Github workflow build-and-release'
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}