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 38bd53b commit 0d89747
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/render-README.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Render README.qmd to Markdown
on:
push:
branches:
- dev/nick
- stage

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

- name: Find and Render README.qmd Files # quarto render "$qmd_file" --to markdown
- name: Find and Render README.qmd Files
run: |
find . -name "README.qmd" | while read qmd_file; do
# quarto render "$qmd_file" --to markdown
rmarkdown::render(qmd_file)
done
Expand All @@ -39,9 +40,11 @@ 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
# Set up authentication for git push
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git push origin main
git push origin stage

0 comments on commit 0d89747

Please sign in to comment.