Revert "[vald-client-clj]: Use vald-client-ci workflows for release a… #17
This file contains 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: Update version | |
# on: | |
# schedule: | |
# - cron: 0 * * * * | |
# workflow_dispatch: | |
# | |
# jobs: | |
# update-version: | |
# name: update-version | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Check out code. | |
# uses: actions/checkout@v3 | |
# with: | |
# fetch-depth: 0 | |
# persist-credentials: false | |
# - uses: crazy-max/ghaction-import-gpg@v4 | |
# with: | |
# gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
# git_user_signingkey: true | |
# git_commit_gpgsign: true | |
# - name: Run gitwerk semver-auto | |
# run: | | |
# CURRENT_VERSION=`cat VALD_CLIENT_CLJ_VERSION` | |
# GITHUB_LATEST_VERSION=`curl -s https://api.github.com/repos/vdaas/vald-client-java/releases/latest | jq -r '.tag_name'` | |
# if [ "" = "${GITHUB_LATEST_VERSION}" ]; then | |
# echo "the version is empty" | |
# exit 0 | |
# fi | |
# | |
# if [ "${CURRENT_VERSION}" = "v${GITHUB_LATEST_VERSION}" ]; then | |
# echo "vald-client-java latest version in GitHub is ${GITHUB_LATEST_VERSION}. GitHub is not updated" | |
# exit 0 | |
# fi | |
# | |
# STATUS_CODE=`curl -fsSLI https://repo1.maven.org/maven2/org/vdaas/vald/vald-client-java/${GITHUB_LATEST_VERSION} -o /dev/null -w '%{http_code}' 2> /dev/null` | |
# if [ "${STATUS_CODE}" != "200" ]; then | |
# echo "vald-client-java has not been uploaded to maven repository yet" | |
# exit 0 | |
# fi | |
# | |
# VERSION="v${GITHUB_LATEST_VERSION}" | |
# | |
# echo "${VERSION}" > VALD_CLIENT_CLJ_VERSION | |
# | |
# curl -o lein https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein | |
# chmod a+x lein | |
# ./lein pom | |
# rm lein | |
# | |
# git config --global user.name "vdaas-ci" | |
# git config --global user.email "[email protected]" | |
# git remote set-url origin "https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" | |
# | |
# git checkout main | |
# git add VALD_CLIENT_CLJ_VERSION | |
# git add pom.xml | |
# git commit --signoff -m ":bookmark: Release ${VERSION}" | |
# | |
# git tag ${VERSION} | |
# git remote set-url origin "https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" | |
# | |
# git push origin main | |
# git push origin ${VERSION} | |
# env: | |
# GITHUB_USER: ${{ secrets.VALDCLI_USER }} | |
# GITHUB_TOKEN: ${{ secrets.VALDCLI_TOKEN }} |