-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add GitHub Actions workflow for updating README files
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: update README files | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Required Packages | ||
run: | | ||
sudo apt-get update && sudo apt-get install -y \ | ||
make \ | ||
jq \ | ||
unzip \ | ||
pandoc \ | ||
texlive-latex-base \ | ||
texlive-fonts-recommended \ | ||
texlive-fonts-extra \ | ||
texlive-latex-extra && \ | ||
make docs-install | ||
- name: Generate README | ||
run: make docs | ||
|
||
- name: Commit and Push Changes | ||
run: | | ||
git config --local user.email "${{ github.actor }}@users.noreply.github.com" | ||
git config --local user.name "${{ github.actor }}" | ||
git add README.md README.pdf | ||
git diff --cached --quiet || git commit -m "Update README files" | ||
git push origin main |