Skip to content

Commit

Permalink
CI: Use gh api to create a PR instead
Browse files Browse the repository at this point in the history
gh pr create uses the GraphQL API which does not support scoped personal
access tokens. Calling the REST API through gh api directly should work.
  • Loading branch information
daenney committed Dec 2, 2022
1 parent 547754d commit 2fd3765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
git config user.email "[email protected]"
git commit -m "Updated prefixes by ssrfgen"
git push -u origin HEAD
gh pr create -B main -H update-$(date +"%Y-%m-%d") --title "Updated prefixes by ssrfgen" --body "" --reviewer daenney
gh api repos/daenney/ssrf/pulls -f title='Updated prefixes by ssrfgen' -f base='main' -f head="update-$(date +'%Y-%m-%d')" -f body=''
else
echo "No changes to generated code"
fi

0 comments on commit 2fd3765

Please sign in to comment.