Skip to content

Commit ad7252a

Browse files
committed
Fix and verify create-release
Signed-off-by: Artur Souza <[email protected]>
1 parent 2ae7c34 commit ad7252a

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/create-release.yml

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
create-release:
2626
name: Creates release branch and tag
2727
runs-on: ubuntu-latest
28+
env:
29+
JDK_VER: 17
2830
steps:
2931
- name: Check out code
3032
uses: actions/checkout@v4
@@ -34,6 +36,10 @@ jobs:
3436
run: |
3537
sudo apt-get update
3638
sudo apt-get install pcre2-utils
39+
uses: actions/setup-java@v4
40+
with:
41+
distribution: 'adopt'
42+
java-version: ${{ env.JDK_VER }}
3743
- name: Create release branch and tag
3844
env:
3945
GITHUB_TOKEN: ${{ secrets.DAPR_BOT_TOKEN }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#
2+
# Copyright 2024 The Dapr Authors
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License.
12+
#
13+
14+
name: Validate create release
15+
16+
on:
17+
pull_request:
18+
branches:
19+
- master
20+
- release-*
21+
22+
jobs:
23+
create-release:
24+
name: Creates release branch and tag
25+
runs-on: ubuntu-latest
26+
env:
27+
JDK_VER: 17
28+
steps:
29+
- uses: actions/checkout@v4
30+
- name: Verify release branch and tag
31+
env:
32+
DAPR_RELEASE_DRY_RUN: "true"
33+
run:
34+
./.github/scripts/update_sdk_version.sh 1.99
35+
./.github/scripts/update_docs.sh 1.99

0 commit comments

Comments
 (0)