-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |