mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-31 06:03:21 +08:00
Update release.yml
This commit is contained in:
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@ -45,13 +45,7 @@ jobs:
|
|||||||
|
|
||||||
echo "PRIOR_VERSION_WHEN_PATCH=$prior_version_when_patch" >> $GITHUB_ENV
|
echo "PRIOR_VERSION_WHEN_PATCH=$prior_version_when_patch" >> $GITHUB_ENV
|
||||||
|
|
||||||
# check out main branch to verify there won't be problems with merging the change log
|
- run: |
|
||||||
# at the end of this workflow
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: main
|
|
||||||
|
|
||||||
- run: |
|
|
||||||
if [[ -z $PRIOR_VERSION_WHEN_PATCH ]]; then
|
if [[ -z $PRIOR_VERSION_WHEN_PATCH ]]; then
|
||||||
# not making a patch release
|
# not making a patch release
|
||||||
if ! grep --quiet "^## Version ${STABLE_VERSION}/${UNSTABLE_VERSION} " CHANGELOG.md; then
|
if ! grep --quiet "^## Version ${STABLE_VERSION}/${UNSTABLE_VERSION} " CHANGELOG.md; then
|
||||||
@ -60,6 +54,12 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check out main branch to verify there won't be problems with merging the change log
|
||||||
|
# at the end of this workflow
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: main
|
||||||
|
|
||||||
# back to the release branch
|
# back to the release branch
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user