try to get pypi images working #3
Workflow file for this run
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: 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 "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) |