Skip to content

Better packaging

Better packaging #1

Workflow file for this run

---
name: citation
on: # yamllint disable-line rule:truthy
release:
types: [published]
workflow_dispatch:
jobs:
update-citation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: master
- uses: actions/setup-python@master
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install requests PyYAML
- name: Update CITATION.cff
run: |
python .github/scripts/update_citation.py
- name: Commit and Push CITATION.cff Update
run: |
git config --local user.email "action@github.com"
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
)