Trying to figure out RCA
Some checks failed
sample gradle build and test / build (pull_request) Successful in 1m12s
sample gradle build and test / build (push) Failing after 9s

This commit is contained in:
hitanshu310 2025-06-06 01:11:09 +05:30
parent 0bc90d5d77
commit 4afeb9f6b2

View File

@ -22,14 +22,14 @@ jobs:
run: echo $(which cut) run: echo $(which cut)
- name: Get latest tag - name: Get latest tag
run: | run: |
export "VERSION=$(git describe --tags --abbrev=0)" >> $GITEA_OUTPUT export "VERSION=$(git describe --tags --abbrev=0)"
echo "${GITEA_OUTPUT}" echo "${VERSION}"
export "MAJOR=$(echo ${VERSION} | /usr/bin/cut -d "." -f 1)" export "MAJOR=$(echo ${VERSION} | /usr/bin/cut -d "." -f 1)"
echo "${MAJOR}" echo "${MAJOR}"
export "MINOR=$(echo ${VERSION} | cut -d "." -f 2)" export "MINOR=$(echo ${VERSION} | cut -d "." -f 2)"
echo "${MINOR}" echo "${MINOR}"
export "PATCH=$(echo ${VERSION} | cut -d "." -f 3)" export "PATCH=$(echo ${VERSION} | cut -d "." -f 3)"
echo "${PATCH} echo "${PATCH}"
- name: Increment version - name: Increment version
run: | run: |
PATCH=$((PATCH + 1)) PATCH=$((PATCH + 1))