Skip to content

Commit c4c62e1

Browse files
committed
Merge branch 'develop'
2 parents 3db677f + 69a772d commit c4c62e1

28 files changed

+1328
-339
lines changed

.github/workflows/changelog.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Update changelog
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [develop]
7+
8+
jobs:
9+
update-changelog:
10+
name: Update changelog
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout the repo
14+
uses: actions/checkout@v4
15+
with:
16+
# Get history and tags for SCM versioning to work
17+
fetch-depth: 0
18+
- name: Install the latest version of uv with cache enabled
19+
uses: astral-sh/setup-uv@v3
20+
with:
21+
version: "latest"
22+
enable-cache: true
23+
cache-dependency-glob: ""
24+
- name: Install python-semantic-release in venv
25+
run: |
26+
uv venv
27+
source .venv/bin/activate
28+
uv pip install python-semantic-release
29+
- name: Get expected new version and update changelog
30+
run: |
31+
source .venv/bin/activate
32+
EXPECTED_VERSION=$(semantic-release --noop version)
33+
TODAY=$(date +"%Y-%m-%d")
34+
TITLE="$EXPECTED_VERSION ($TODAY)"
35+
TITLE_LENGTH=${#TITLE}
36+
37+
semantic-release changelog
38+
39+
sed -i "/^Unreleased$/{
40+
s/.*/$TITLE/
41+
n
42+
s/^=*$/$(printf '%*s' "$TITLE_LENGTH" '' | tr ' ' '=')/
43+
}" CHANGES.rst
44+
45+
echo "EXPECTED_VERSION=$EXPECTED_VERSION" >> $GITHUB_ENV
46+
47+
- name: Create Pull Request
48+
uses: peter-evans/create-pull-request@v6
49+
with:
50+
branch: new-release
51+
delete-branch: true
52+
draft: true
53+
title: 'build: bump version'
54+
body: |
55+
`${{ env.EXPECTED_VERSION }}` release.
56+
Please also update version in:
57+
- [ ] [pyproject.toml](https://github.com/CS-SI/eodag/edit/new-release/pyproject.toml#L6)
58+
- [ ] [README.rst](https://github.com/CS-SI/eodag/edit/new-release/README.rst#L190)
59+
- [ ] [charts/eodag-server/Chart.yml#appVersion](https://github.com/CS-SI/eodag/edit/new-release/charts/eodag-server/Chart.yaml#L2)
60+
- [ ] [charts/eodag-server/Chart.yml#version](https://github.com/CS-SI/eodag/edit/new-release/charts/eodag-server/Chart.yaml#L18)
61+
- [ ] [docs/stac_rest.rst](https://github.com/CS-SI/eodag/edit/new-release/docs/stac_rest.rst#L118)
62+
labels: |
63+
automated pr

0 commit comments

Comments
 (0)