Skip to content

Commit

Permalink
git push before creating pr
Browse files Browse the repository at this point in the history
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: cli/cli#2691 (comment)
  • Loading branch information
subhoghoshX committed Jul 28, 2024
1 parent 3ee6a8a commit cc51761
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/update-download-link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit cc51761

Please sign in to comment.