File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -119,36 +119,3 @@ jobs:
119119 # the step below is creating a pull request against main
120120 ref : main
121121
122- - name : Copy change log updates to main
123- env :
124- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
125- run : |
126- echo "VERSION=${STABLE_VERSION}\/${UNSTABLE_VERSION}" >> $GITHUB_ENV
127- echo "RELEASE_TAG=$STABLE_VERSION" >> $GITHUB_ENV
128- ./scripts/merge_changelog_to_main.sh
129-
130- - name : Use CLA approved github bot
131- run : .github/scripts/use-cla-approved-github-bot.sh
132-
133- - name : Create pull request against main
134- env :
135- # not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
136- GITHUB_TOKEN : ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
137- run : |
138- message="Copy change log updates from $GITHUB_REF_NAME"
139- body="Copy log updates from \`$GITHUB_REF_NAME\`."
140- branch="opentelemetrybot/copy-change-log-updates-from-${GITHUB_REF_NAME//\//-}"
141-
142- if [[ -z $PRIOR_VERSION_WHEN_PATCH ]]; then
143- if git diff --quiet; then
144- echo there are no updates needed to the change log on main, not creating pull request
145- exit 0 # success
146- fi
147- fi
148-
149- git commit -a -m "$message"
150- git push origin HEAD:$branch
151- gh pr create --title "$message" \
152- --body "$body" \
153- --head $branch \
154- --base main
You can’t perform that action at this time.
0 commit comments