Skip to content

Commit

Permalink
Merge pull request #236 from dominant-strategies/use-gh
Browse files Browse the repository at this point in the history
use gh cli instead of curl for creating quais-docs pr
  • Loading branch information
robertlincecum authored Jun 27, 2024
2 parents 9efadd1 + 4c56927 commit 1c5847f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/cut-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,23 @@ jobs:
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/dominant-strategies/quais-docs/pulls \
-d '{"title":"Update Documentation","head":"'"$PR_BRANCH"'","base":"main","body":"This PR updates the documentation."}'
- name: Set up SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.GH_PAT }}" > ~/.ssh/id_key
chmod 600 ~/.ssh/id_key
ssh-keyscan github.com >> ~/.ssh/known_hosts
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_key
- name: Create Pull Request
run: |
PR_BRANCH=${{ needs.get-branch.outputs.branch }}
gh pr create --title "Update Documentation" --body "This PR updates the documentation." --head $PR_BRANCH --base main
- name: Remove SSH key
run: |
rm ~/.ssh/id_key
rm ~/.ssh/known_hosts

0 comments on commit 1c5847f

Please sign in to comment.