Skip to content

Commit

Permalink
Merge pull request #18 from tuftsceeo/main
Browse files Browse the repository at this point in the history
catch up dev/nick
  • Loading branch information
NicK4rT authored Nov 23, 2024
2 parents b7c19b6 + cb954f0 commit 5baa8ee
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/render-README.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Render README.qmd to Markdown

on:
push:
branches:
- dev/nick

jobs:
render:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false # Prevents GitHub token reuse

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

- name: Install Required R Packages
run: |
Rscript -e 'if (!requireNamespace("rmarkdown", quietly = TRUE)) install.packages("rmarkdown", repos = "https://cloud.r-project.org/")'
Rscript -e 'if (!requireNamespace("knitr", quietly = TRUE)) install.packages("knitr", repos = "https://cloud.r-project.org/")'
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Find and Render README.qmd Files
run: |
find . -name "README.qmd" | while read qmd_file; do
quarto render "$qmd_file" --to markdown
done
- name: Commit and Push Rendered Files
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --local user.name "$GITHUB_ACTOR"
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"
# 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
2 changes: 1 addition & 1 deletion software/networking/examples/pyscript_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ def heartbeat(timer):
gc.collect()

timer = machine.Timer(0)
timer.init(period=5000, mode=machine.Timer.PERIODIC, callback=heartbeat)
timer.init(period=5000, mode=machine.Timer.PERIODIC, callback=heartbeat)

0 comments on commit 5baa8ee

Please sign in to comment.