Packaging Release #1
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: citation | |
on: # yamllint disable-line rule:truthy | |
release: | |
types: [published] | |
workflow_dispatch: | |
jobs: | |
update-citation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@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 "[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 | |
) |