Update CITATION.cff from Codemeta #1
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 from Codemeta | |
| on: | |
| push: | |
| paths: | |
| - 'codemeta.json' | |
| workflow_dispatch: # enables manual triggers | |
| jobs: | |
| convert: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # Needed to commit changes back to the repo | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Run Codemeta Converter Action | |
| uses: kingsdigitallab/credits-tools@main | |
| with: | |
| codemeta-path: 'codemeta.json' | |
| cff-path: 'CITATION.cff' | |
| - name: Check for changes and commit | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: 'Auto-update CITATION.cff from codemeta.json' | |
| file_pattern: 'CITATION.cff' |