Trying to figure out RCA
This commit is contained in:
parent
856748edb7
commit
c24abc76be
@ -21,7 +21,7 @@ jobs:
|
|||||||
- name: Get latest tag
|
- name: Get latest tag
|
||||||
id: get_tag
|
id: get_tag
|
||||||
run: |
|
run: |
|
||||||
export "VERSION=$(git describe --tags --abbrev=0)"
|
export "VERSION=$(git describe --tags --abbrev=0)" >> $GITEA_ENV
|
||||||
echo "${VERSION}"
|
echo "${VERSION}"
|
||||||
export "MAJOR=$(echo ${VERSION} | /usr/bin/cut -d "." -f 1)"
|
export "MAJOR=$(echo ${VERSION} | /usr/bin/cut -d "." -f 1)"
|
||||||
echo "MAJOR=${MAJOR}"
|
echo "MAJOR=${MAJOR}"
|
||||||
@ -31,8 +31,7 @@ jobs:
|
|||||||
echo "PATCH=${PATCH}"
|
echo "PATCH=${PATCH}"
|
||||||
- name: Increment version
|
- name: Increment version
|
||||||
run: |
|
run: |
|
||||||
export "NEW_VERSION=${{ steps.get_tag.outputs.MAJOR }}"
|
cat $GITEA_ENV
|
||||||
echo "NEW_VERSION=${NEW_VERSION}"
|
|
||||||
- name: Extract commit message
|
- name: Extract commit message
|
||||||
run: echo "COMMIT_MESSAGE=$(git log -1 --pretty=%B)"
|
run: echo "COMMIT_MESSAGE=$(git log -1 --pretty=%B)"
|
||||||
- name: Create and push tag
|
- name: Create and push tag
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user