1.0.9 #17
Workflow file for this run
This file contains hidden or 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: | |
| types: [published] | |
| jobs: | |
| update-citation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: main | |
| fetch-depth: 0 | |
| - name: Update version in CITATION.cff | |
| run: | | |
| VERSION=${{ github.event.release.tag_name }} | |
| sed -i "s/^version:.*/version: ${VERSION}/" CITATION.cff | |
| - name: Commit changes | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add CITATION.cff | |
| git commit -m "Update CITATION.cff to version ${VERSION}" | |
| git push | |