Skip to content

Commit

Permalink
Ignore minor release on publish (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
goshander authored Oct 25, 2023
1 parent 3e074a3 commit a7e9d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish_platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: |
COMMIT_NAME=$(git log -n 1 --pretty=format:%s)
LAST_RELEASE_VERSION=$(curl -L https://api.github.com/repos/$GITHUB_REPOSITORY/releases | jq -r '.|=sort_by(.name|ltrimstr("v")|split(".")|map(tonumber))|.[-1].name' | sed 's|v||')
LAST_RELEASE_VERSION=$(curl -L https://api.github.com/repos/$GITHUB_REPOSITORY/releases | jq -r '.|=sort_by(.name|ltrimstr("v")|split(".")|map(tonumber)|[.[0],.[1],-.[2]])|.[-1].name' | sed 's|v||')
echo "Last release version: ${LAST_RELEASE_VERSION}"
MAIN_COMMIT=$(git rev-parse origin/main)
Expand Down

0 comments on commit a7e9d29

Please sign in to comment.