Skip to content

Commit

Permalink
Use release workflow to set version
Browse files Browse the repository at this point in the history
  • Loading branch information
tungleduyxyz committed May 4, 2024
1 parent a2d1833 commit 967ff06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ jobs:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_PASS: ${{ secrets.OSSRH_PASS }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
VERSION: ${{ github.event.inputs.perform_version }}
# It will still check the remote but hopefully not download much (0 B at 0 B/s). -o isn't safe because of MDEP-82 (see above).
# See https://issues.apache.org/jira/browse/SCM-729 for why the release.properties file is required.
run: |
echo "scm.url=scm\:git\:[email protected]\:${GITHUB_REPOSITORY}.git" > release.properties
echo "scm.tag=${{ github.event.inputs.perform_version }}" >> release.properties
echo "scm.tag=${VERSION}" >> release.properties
mvn ${MAVEN_FLAGS} release:perform
2 changes: 1 addition & 1 deletion app/controllers/health_check_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class HealthCheckController < ActionController::Base
def health
response = { version: Kaui.version, status: 'UP' }
response = { version: ENV.fetch('VERSION'), status: 'UP' }
render json: response, status: 200
end
end

0 comments on commit 967ff06

Please sign in to comment.