Merge pull request #244 from MrNeRF/fix_external_contrib_worklfow #1
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
name: Generate HTML on Main | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'awesome_3dgs_papers.yaml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Generate HTML | |
run: | | |
python src/generate.py awesome_3dgs_papers.yaml index.html | |
- name: Commit and push if changed | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add index.html | |
git diff --staged --quiet || (git commit -m "Update index.html" && git push) |