From 0e81f4313857c03d3b526e5b9ab81fd279e5afcc Mon Sep 17 00:00:00 2001 From: Leighton Chen Date: Wed, 13 Nov 2024 15:18:47 -0800 Subject: [PATCH] Remove updating CHANGELOG step in release workflow Same as https://github.com/open-telemetry/opentelemetry-python/pull/4273 --- .github/workflows/release.yml | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7d7b18edc8..97e51c9c63 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -118,36 +118,3 @@ jobs: # the step below is creating a pull request against main ref: main - - name: Copy change log updates to main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - echo "VERSION=${STABLE_VERSION}\/${UNSTABLE_VERSION}" >> $GITHUB_ENV - echo "RELEASE_TAG=$STABLE_VERSION" >> $GITHUB_ENV - ./scripts/merge_changelog_to_main.sh - - - name: Use CLA approved github bot - run: .github/scripts/use-cla-approved-github-bot.sh - - - name: Create pull request against main - env: - # not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows - GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} - run: | - message="Copy change log updates from $GITHUB_REF_NAME" - body="Copy log updates from \`$GITHUB_REF_NAME\`." - branch="opentelemetrybot/copy-change-log-updates-from-${GITHUB_REF_NAME//\//-}" - - if [[ -z $PRIOR_VERSION_WHEN_PATCH ]]; then - if git diff --quiet; then - echo there are no updates needed to the change log on main, not creating pull request - exit 0 # success - fi - fi - - git commit -a -m "$message" - git push origin HEAD:$branch - gh pr create --title "$message" \ - --body "$body" \ - --head $branch \ - --base main