fix health not getting updated #128
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Compile snapshot with Maven | |
| on: | |
| push: | |
| branches-ignore: | |
| - master | |
| - development | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: development | |
| url: https://repo.andrei1058.dev | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Deploy snapshot with Maven | |
| env: | |
| MVN_REPO_USER: ${{ secrets.MVN_REPO_USER }} | |
| MVN_REPO_PASS: ${{ secrets.MVN_REPO_PASS }} | |
| ANDEV_RES_ID: 4 | |
| run: | | |
| sudo apt install jq -y | |
| curl -X GET https://api.andrei1058.dev/v1/resources/$ANDEV_RES_ID/versioning/current -H "Accept: application/json" >> version.json | |
| export UPDATE_VERSION=`jq '.version' version.json | tr -d '"'` | |
| mvn versions:set -DnewVersion=$UPDATE_VERSION-SNAPSHOT | |
| mvn versions:update-child-modules | |
| mvn clean install -s ci_settings.xml | |
| echo "UPDATE_VERSION=$UPDATE_VERSION" >> $GITHUB_ENV |