Skip to content

citation

citation #5

name: Update CITATION.cff on Release
on:
release:
types: [published]
workflow_dispatch:
jobs:
update-citation:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests PyYAML
- name: Update CITATION.cff
run: |
python .github/scripts/update_citation.py
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git diff --exit-code || (git add CITATION.cff && git commit -m "Update CITATION.cff with latest release date" && git push)