Skip to content

Commit

Permalink
use pat token for quais docs pr
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlincecum committed Jun 27, 2024
1 parent 5300536 commit 8721a95
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/cut-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,28 +103,8 @@ jobs:
- name: Create Pull Request
run: |
PR_BRANCH=${{ needs.get-branch.outputs.branch }}
curl -u github-actions:${{ secrets.GITHUB_TOKEN }} \
curl -u ci-dominantstrategies:${{ secrets.CI_PAT }} \
-X POST \
-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 8721a95

Please sign in to comment.