Ensure release version set for other steps
@@ -68,6 +68,12 @@ jobs:
steps:
- name: Checkout the repository
uses: actions/checkout@v1
+ - name: Set the current release version
+ id: release_version
+ run: |
+ release_version=${GITHUB_REF:11}
+ sed -i "s/^projectVersion.*$/projectVersion\=${release_version}/" gradle.properties
+ echo ::set-output name=release_version::${release_version}
- name: Set the current release version
id: release_version
run: echo ::set-output name=release_version::${GITHUB_REF:11}
@@ -110,6 +116,12 @@ jobs:
steps:
- name: Checkout the repository
uses: actions/checkout@v1
+ - name: Set the current release version
+ id: release_version
+ run: |
+ release_version=${GITHUB_REF:11}
+ sed -i "s/^projectVersion.*$/projectVersion\=${release_version}/" gradle.properties
+ echo ::set-output name=release_version::${release_version}
- name: Install GraalVM
env:
GRAAL_VERSION: 20.1.0
@@ -148,6 +160,12 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
+ - name: Set the current release version
+ id: release_version
+ run: |
+ release_version=${GITHUB_REF:11}
+ sed -i "s/^projectVersion.*$/projectVersion\=${release_version}/" gradle.properties
+ echo ::set-output name=release_version::${release_version}
- name: Download GraalVM
run: Invoke-RestMethod -Uri https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-20.1.0/graalvm-ce-java11-windows-amd64-20.1.0.zip -OutFile 'graal.zip'
- name: Install GraalVM
@@ -203,7 +221,10 @@ jobs:
uses: actions/checkout@v1
- name: Set the current release version
id: release_version
- run: echo ::set-output name=release_version::${GITHUB_REF:11}
+ run: |
+ release_version=${GITHUB_REF:11}
+ sed -i "s/^projectVersion.*$/projectVersion\=${release_version}/" gradle.properties
+ echo ::set-output name=release_version::${release_version}
- name: Run Tests
run: ./gradlew starter-api:test starter-web-netty:test starter-gcp-function:shadowJar
- name: Build Docker image
@@ -234,7 +255,10 @@ jobs:
uses: actions/checkout@v1
- name: Set the current release version
id: release_version
- run: echo ::set-output name=release_version::${GITHUB_REF:11}
+ run: |
+ release_version=${GITHUB_REF:11}
+ sed -i "s/^projectVersion.*$/projectVersion\=${release_version}/" gradle.properties
+ echo ::set-output name=release_version::${release_version}
- name: Authenticate into Google Cloud Platform
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
with:
