Skip to content

Commit

Permalink
Update convert-notebooks.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cudeso authored Dec 2, 2024
1 parent e36fa7a commit 752ff67
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/convert-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ jobs:
mkdir -p html-notebooks
find misp-playbooks -name "*.ipynb" -exec jupyter nbconvert --to html --output-dir=html-notebooks {} +
- name: Commit and push changes
- name: Stage and commit changes
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
cp -r html-notebooks/* misp-playbooks/
git add misp-playbooks/*.html
git add README.md
git commit -m "Auto-convert notebooks to HTML and update README"
git push
git add -A # Add all changes, including untracked files
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "Auto-convert notebooks to HTML"
git push
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 752ff67

Please sign in to comment.