File tree 3 files changed +10
-13
lines changed
3 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,13 @@ jobs:
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- uses : actions/checkout@v3
16
- - run : echo "${GITHUB_REF#refs/tags/}" > VERSION
17
- - run : echo "::set-output name=result::$(cat VERSION)"
18
- id : version
19
16
- uses : actions/setup-java@v3
20
17
with :
21
18
java-version : ' 8.x'
22
19
java-package : jdk
23
20
distribution : ' temurin'
24
21
cache : ' gradle'
22
+ - run : RELEASE_VERSION="${GITHUB_REF#refs/tags/}" ./gradlew verifyReleaseVersion
25
23
- name : Set up gradle.properties for sigining and nexus
26
24
# Add timeout setting due to https://github.com/DeployGate/gradle-deploygate-plugin/runs/2523846388
27
25
run : |
42
40
SLACK_TITLE : ' Android SDK Release'
43
41
SLACK_MESSAGE : " ${{ github.ref }} has been published to Sonatype. ref: https://oss.sonatype.org/"
44
42
SLACK_WEBHOOK : ${{ secrets.SHARED_FOR_RELEASE_ARTIFACT_SLACK_INCOMING_WEBHOOK_URL }}
45
- - name : Create Pull Request
46
- uses :
peter-evans/[email protected]
47
- with :
48
- title : " Update VERSION information to ${{ steps.version.outputs.result }}"
49
- commit-message : " bump :rocket: ${{ steps.version.outputs.result }}"
50
- branch : " bumped/${{ steps.version.outputs.result }}"
51
- delete-branch : true
52
- add-paths : VERSION
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
2
ext {
3
- releaseVersion = ' 4.3 .0'
3
+ releaseVersion = ' 4.4 .0'
4
4
}
5
5
6
6
buildscript {
@@ -24,3 +24,11 @@ allprojects {
24
24
task clean (type : Delete ) {
25
25
delete rootProject. buildDir
26
26
}
27
+
28
+ task verifyReleaseVersion () {
29
+ doLast {
30
+ if (project. ext. releaseVersion != System . getenv(" RELEASE_VERSION" )) {
31
+ throw new GradleException (" ${ project.ext.releaseVersion} does not equal to ${ System.getenv("RELEASE_VERSION")} " )
32
+ }
33
+ }
34
+ }
You can’t perform that action at this time.
0 commit comments