瀏覽代碼

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

Fabien Lelaquais 2 月之前
父節點
當前提交
290d4040fb
共有 1 個文件被更改,包括 5 次插入1 次删除
  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 }}