Skip to content

Commit

Permalink
Testing quarto workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrsch committed Oct 11, 2024
1 parent 940a80a commit 3d6321f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/render-quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,20 @@ jobs:
run: |
# Check if there are changes in .qmd files between the last two commits
if git diff --quiet HEAD^ HEAD -- app/static/*.qmd; then
echo "No changes detected"
echo "::set-output name=changes-detected::false"
echo "changes_detected=false" >> $GITHUB_ENV
else
echo "Changes detected"
echo "::set-output name=changes-detected::true"
echo "changes_detected=true" >> $GITHUB_ENV
fi
- name: Render Quarto docs
if: steps.changes.outputs.changes-detected == 'true'
run: |
quarto render app/static/
# Loop through all .qmd files and render them individually
for file in app/static/*.qmd; do
if [ -f "$file" ]; then
quarto render "$file"
fi
done
- name: Commit and push rendered Quarto docs
if: steps.changes.outputs.changes-detected == 'true'
Expand Down
2 changes: 1 addition & 1 deletion app/static/lstm.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ format:
embed-resources: true
---

Testing change 4
Testing change 5

How many neurons most have the LSTM layer?

Expand Down

0 comments on commit 3d6321f

Please sign in to comment.