-
Notifications
You must be signed in to change notification settings - Fork 223
38 lines (35 loc) · 1.24 KB
/
post_release_updates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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]