-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
f0bf350
commit 61e5147
Showing
3 changed files
with
22 additions
and
13 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 |
---|---|---|
|
@@ -6,19 +6,23 @@ on: | |
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
make_slides: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup git | ||
run: | | ||
git config --global user.name "Slide updates" | ||
git config --global user.email "[email protected]" | ||
git config --global url.https://github.com/.insteadOf git://github.com/ | ||
- name: checkout repo | ||
uses: actions/checkout@main | ||
- name: build application | ||
run: make slides | ||
- name: Commit changes | ||
- name: clone marp-cli | ||
run: docker clone marpteam/marp-cli | ||
- name: make slides | ||
run: make -B slides | ||
- name: Commit and push changes | ||
run: | | ||
git add . | ||
git diff --quiet && git diff --staged --quiet || git commit -m 'update slides' | ||
git config --global user.name "Slide creator" | ||
git config --global user.email "[email protected]" | ||
git add output/* | ||
if git diff --staged --quiet; then | ||
echo "No changes to commit" | ||
else | ||
git commit -m "Update slides ($(date +'%Y-%m-%d-%H-%M'))" | ||
git push origin main | ||
fi |
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
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