Skip to content

Commit

Permalink
Update render-README.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NicK4rT authored Nov 26, 2024
1 parent 33f77de commit dd6bd38
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/render-README.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.RENDER_KEY }} # SSH key from your secrets
persist-credentials: false # Prevent GitHub Actions from overwriting the credentials
ssh-key: ${{ secrets.RENDER_KEY }} # Deployment key from your secrets
persist-credentials: false # Prevent GitHub Actions from overwriting credentials

- name: Set up R
uses: r-lib/actions/setup-r@v2
Expand All @@ -39,10 +39,16 @@ jobs:
git config --local user.email "[email protected]"
git add .
git commit -m "Render README.qmd files to gfm" || echo "No changes to commit"
git fetch origin
#git checkout stage || git checkout -b stage
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git push origin main
# Ensure the remote URL is SSH
git remote set-url origin [email protected]:${GITHUB_REPOSITORY}.git
# Set up SSH key for deployment key
mkdir -p ~/.ssh
echo "${{ secrets.RENDER_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
# Push changes via SSH with deployment key
git push origin main

0 comments on commit dd6bd38

Please sign in to comment.