Skip to content

Commit d5c28da

Browse files
authored
Sync post release workflow a bit more with other Java repos (#7755)
1 parent 3a92740 commit d5c28da

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
echo "version=$VERSION" >> $GITHUB_OUTPUT
134134
echo "prior-version=$PRIOR_VERSION" >> $GITHUB_OUTPUT
135135
136-
update-apidiff-baseline-and-docs-to-released-version:
136+
post-release-updates:
137137
permissions:
138138
contents: write # for git push to PR branch
139139
runs-on: ubuntu-latest
@@ -178,6 +178,15 @@ jobs:
178178
sleep 60
179179
done
180180
181+
- name: Set up JDK for running Gradle
182+
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
183+
with:
184+
distribution: temurin
185+
java-version: 17
186+
187+
- name: Set up Gradle
188+
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
189+
181190
- name: Update apidiff baseline
182191
env:
183192
VERSION: ${{ needs.release.outputs.version }}
@@ -209,9 +218,9 @@ jobs:
209218
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
210219
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
211220
run: |
212-
message="Update apidiff baseline and documentation versions to released version $VERSION"
213-
body="Update apidiff baseline and documentation versions to released version \`$VERSION\`."
214-
branch="otelbot/update-apidiff-baseline-and-documentation-to-released-version-${VERSION}"
221+
message="Post-release updates for $VERSION"
222+
body="Post-release updates for \`$VERSION\`."
223+
branch="otelbot/post-release-updates-${VERSION}"
215224
216225
git checkout -b $branch
217226
git commit -m "$message"

0 commit comments

Comments
 (0)