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 23, 2024
1 parent df247dd commit cc595a1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/render-README.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false # Prevents GitHub token reuse

persist-credentials: false
- name: Set up R
uses: r-lib/actions/setup-r@v2

Expand All @@ -26,10 +25,11 @@ jobs:
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Find and Render README.qmd Files
- name: Find and Render README.qmd Files
run: |
find . -name "README.qmd" | while read qmd_file; do
quarto render "$qmd_file" --to markdown
# quarto render "$qmd_file" --to markdown
rmarkdown::render(qmd_file)
done
- name: Commit and Push Rendered Files
Expand All @@ -40,11 +40,10 @@ jobs:
git config --local user.email "[email protected]"
git add .
git commit -m "Render README.qmd files to Markdown [skip ci]" || 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 stage

0 comments on commit cc595a1

Please sign in to comment.