Debian Codegraph @

.github/workflows/post_release_updates.yml

raw
1 name: Update metadata after release
2
3 on: workflow_dispatch
4
5 jobs:
6 build:
7 runs-on: ubuntu-latest
8 permissions:
9 # Give the default GITHUB_TOKEN write permission to commit and push the
10 # added or changed files to the repository.
11 contents: write
12 pull-requests: write
13 steps:
14 - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
15 with:
16 persist-credentials: true # Needed to push changes back to the repository
17 fetch-depth: 0
18 fetch-tags: true
19 - name: Install Python
20 uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
21 with:
22 python-version: 3.12
23 - name: Install dependencies
24 run: python -m pip install cffconvert pyaml ruamel.yaml requests
25 - name: Update metadata
26 run: python dev/continuous-integration/update_zenodo_swh.py
27 - name: Verify CITATION.cff
28 run: cffconvert --validate
29 - name: Create Pull Request
30 uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
31 with:
32 delete-branch: true
33 branch: update-metadata-post-release
34 title: Update CITATION.cff and README.md with metadata from Zenodo/SWH
35 commit-message: |
36 Update CITATION.cff and README.md with metadata from Zenodo/SWH
37
38 [ci skip]