Trying to figure out RCA

This commit is contained in:
hitanshu310 2025-06-06 02:02:19 +05:30
parent c24abc76be
commit 05214000af

View File

@ -23,15 +23,17 @@ jobs:
run: |
export "VERSION=$(git describe --tags --abbrev=0)" >> $GITEA_ENV
echo "${VERSION}"
export "MAJOR=$(echo ${VERSION} | /usr/bin/cut -d "." -f 1)"
export "MAJOR=$(echo ${VERSION} | /usr/bin/cut -d "." -f 1)" >> $GITEA_ENV
echo "MAJOR=${MAJOR}"
export "MINOR=$(echo ${VERSION} | cut -d "." -f 2)"
export "MINOR=$(echo ${VERSION} | cut -d "." -f 2)" >> $GITEA_ENV
echo "MINOR=${MINOR}"
export "PATCH=$(echo ${VERSION} | cut -d "." -f 3)"
export "PATCH=$(echo ${VERSION} | cut -d "." -f 3)" >> $GITEA_ENV
echo "PATCH=${PATCH}"
- name: Increment version
run: |
cat $GITEA_ENV
export "PATCH=$((${PATCH} + 1))" >> $GITEA_ENV
export "NEW_VERSION=$(echo ${MAJOR}.${MINOR}.${PATCH})" >> $GITEA_ENV
echo "NEW_VERSION=${NEW_VERSION}"
- name: Extract commit message
run: echo "COMMIT_MESSAGE=$(git log -1 --pretty=%B)"
- name: Create and push tag