Update metadata after release #10
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 metadata after release | |
on: workflow_dispatch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository. | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: true # Needed to push changes back to the repository | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies | |
run: python -m pip install cffconvert pyaml ruamel.yaml requests | |
- name: Update metadata | |
run: python dev/continuous-integration/update_zenodo_swh.py | |
- name: Verify CITATION.cff | |
run: cffconvert --validate | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
delete-branch: true | |
branch: update-metadata-post-release | |
title: Update CITATION.cff and README.md with metadata from Zenodo/SWH | |
commit-message: | | |
Update CITATION.cff and README.md with metadata from Zenodo/SWH | |
[ci skip] |