Skip to content

Commit c32cc7a

Browse files
authoredNov 14, 2024
Remove updating CHANGELOG step in release workflow (#3000)
1 parent a6e4a0c commit c32cc7a

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed
 

‎.github/workflows/release.yml

-33
Original file line numberDiff line numberDiff line change
@@ -118,36 +118,3 @@ jobs:
118118
# the step below is creating a pull request against main
119119
ref: main
120120

121-
- name: Copy change log updates to main
122-
env:
123-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
124-
run: |
125-
echo "VERSION=${STABLE_VERSION}\/${UNSTABLE_VERSION}" >> $GITHUB_ENV
126-
echo "RELEASE_TAG=$STABLE_VERSION" >> $GITHUB_ENV
127-
./scripts/merge_changelog_to_main.sh
128-
129-
- name: Use CLA approved github bot
130-
run: .github/scripts/use-cla-approved-github-bot.sh
131-
132-
- name: Create pull request against main
133-
env:
134-
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
135-
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
136-
run: |
137-
message="Copy change log updates from $GITHUB_REF_NAME"
138-
body="Copy log updates from \`$GITHUB_REF_NAME\`."
139-
branch="opentelemetrybot/copy-change-log-updates-from-${GITHUB_REF_NAME//\//-}"
140-
141-
if [[ -z $PRIOR_VERSION_WHEN_PATCH ]]; then
142-
if git diff --quiet; then
143-
echo there are no updates needed to the change log on main, not creating pull request
144-
exit 0 # success
145-
fi
146-
fi
147-
148-
git commit -a -m "$message"
149-
git push origin HEAD:$branch
150-
gh pr create --title "$message" \
151-
--body "$body" \
152-
--head $branch \
153-
--base main

0 commit comments

Comments
 (0)