Skip to content

Commit

Permalink
Merge pull request #188 from ForgeRock/dev
Browse files Browse the repository at this point in the history
test
  • Loading branch information
paulbsch authored Dec 11, 2024
2 parents 4e13d5d + 902af59 commit 2567879
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ jobs:
run: |
RELEASE_TAG=$(date +%Y.%m)
latest_tag=${{ steps.get_latest_release.outputs.tag_name }}
[[ $latest_tag == ${RELEASE_TAG}* ]] && patch=$(echo $latest_tag | sed -e "s/^$RELEASE_TAG.\(.*\)/\1/")
major="$(echo $latest_tag | awk -F. '{print $1}')"
minor="$(echo $latest_tag | awk -F. '{print $2}')"
[ "$RELEASE_TAG" == "$major.$minor" ] && patch=$(echo $latest_tag | sed -e "s/^$RELEASE_TAG.\(.*\)/\1/")
[ -n "$patch" ] && patch=$((patch+1)) || patch=0
RELEASE_TAG="$RELEASE_TAG.$patch"
echo "RELEASE_TAG=$RELESE_TAG" >> $GITHUB_ENV
Expand Down

0 comments on commit 2567879

Please sign in to comment.