Browse Source

Fix PR generation command for dev version bump. (2)

Fabien Lelaquais 1 month ago
parent
commit
a9533031ed
1 changed files with 4 additions and 4 deletions
  1. 4 4
      .github/workflows/build-and-release.yml

+ 4 - 4
.github/workflows/build-and-release.yml

@@ -286,10 +286,10 @@ jobs:
       - name: Create pull request
         if: github.event.inputs.release_type == 'dev'
         run: |
-          gh pr create -B ${{ needs.fetch-versions.outputs.BRANCH_NAME }} \
-            -H "feature/update-dev-version-${{ github.run_id }}" \
-            -t "Update Dev Version" \
-            -body "Created by GitHub workflow build-and-release"
+          gh pr create --base "${{ needs.fetch-versions.outputs.BRANCH_NAME }}" \
+            --head "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 }}