mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-02 02:52:18 +08:00
Cherry pick eachdist.py changes to main from release/v1.28.x-0.49bx branch (#3018)
* Fix prepare patch release workflow (#3013) * Fix eachdist.py patch release to respect "all" and "excluded" (#3016)
This commit is contained in:
11
.github/scripts/update-version-patch.sh
vendored
Executable file
11
.github/scripts/update-version-patch.sh
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
sed -i "/\[stable\]/{n;s/version=.*/version=$1/}" eachdist.ini
|
||||
sed -i "/\[prerelease\]/{n;s/version=.*/version=$2/}" eachdist.ini
|
||||
|
||||
./scripts/eachdist.py update_patch_versions \
|
||||
--stable_version=$1 \
|
||||
--unstable_version=$2 \
|
||||
--stable_version_prev=$3 \
|
||||
--unstable_version_prev=$4
|
||||
|
6
.github/workflows/prepare-patch-release.yml
vendored
6
.github/workflows/prepare-patch-release.yml
vendored
@ -40,14 +40,18 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
stable_version_prev="$stable_major_minor.$((stable_patch))"
|
||||
unstable_version_prev="0.${unstable_minor}b$((unstable_patch))"
|
||||
stable_version="$stable_major_minor.$((stable_patch + 1))"
|
||||
unstable_version="0.${unstable_minor}b$((unstable_patch + 1))"
|
||||
|
||||
echo "STABLE_VERSION=$stable_version" >> $GITHUB_ENV
|
||||
echo "UNSTABLE_VERSION=$unstable_version" >> $GITHUB_ENV
|
||||
echo "STABLE_VERSION_PREV=$stable_version_prev" >> $GITHUB_ENV
|
||||
echo "UNSTABLE_VERSION_PREV=$unstable_version_prev" >> $GITHUB_ENV
|
||||
|
||||
- name: Update version
|
||||
run: .github/scripts/update-version.sh $STABLE_VERSION $UNSTABLE_VERSION
|
||||
run: .github/scripts/update-version-patch.sh $STABLE_VERSION $UNSTABLE_VERSION $STABLE_VERSION_PREV $UNSTABLE_VERSION_PREV
|
||||
|
||||
- name: Set up Python 3.9
|
||||
uses: actions/setup-python@v5
|
||||
|
Reference in New Issue
Block a user