From cc5176113f58edf43fe7ae7cfaca6c05b31690b4 Mon Sep 17 00:00:00 2001 From: Subho Date: Sun, 28 Jul 2024 19:15:04 +0530 Subject: [PATCH] git push before creating pr this can potentially fix the error: pull request create failed: GraphQL: Head sha can't be blank, Base sha can't be blank, No commits between update-link-for-v0.0.1 and main, Base ref must be a branch (createPullRequest) for ref: https://github.com/cli/cli/issues/2691#issuecomment-1289521962 --- .github/workflows/update-download-link.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-download-link.yml b/.github/workflows/update-download-link.yml index 3ebd311..ee8ef82 100644 --- a/.github/workflows/update-download-link.yml +++ b/.github/workflows/update-download-link.yml @@ -22,6 +22,7 @@ jobs: git checkout -b "update-link-for-$version" git add . git commit -m "Update download link" + git push origin "update-link-for-$version" gh pr create -B "update-link-for-$version" -H main --title 'Update download link' --body 'Created by Github action' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}