Skip to content

Merge branch 'main' of https://github.com/marvinschmitt/awesome-amort… #9

Merge branch 'main' of https://github.com/marvinschmitt/awesome-amort…

Merge branch 'main' of https://github.com/marvinschmitt/awesome-amort… #9

name: Generate README
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the repository code
- name: Checkout repository
uses: actions/checkout@v3
# Step 2: Set up Python environment
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11" # Adjust the Python version if necessary
# Step 3: Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install bibtexparser
# Step 4: Run the script to generate README.md
- name: Run README generation script
run: python .github/workflows/bib2readme.py
# Step 5: Commit and push changes if README.md was updated
- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add README.md
git diff-index --quiet HEAD || git commit -m "Update README.md [GH Action]"
git push