Skip to content

Commit

Permalink
fix: use tags to determine latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim authored Mar 26, 2024
1 parent fa47690 commit 6ac1407
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/shopware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- name: Get latest version
run: |
VERSION=$(curl -s https://api.github.com/repos/shopware/shopware/releases/latest | jq -r .tag_name | sed 's/^.//')
VERSION=$(curl -s https://api.github.com/repos/shopware/shopware/tags | jq -r '.[0].name' | sed 's/^.//')
TAG=$(echo $VERSION | tr . ' ' | awk '{print $1 "." $2 "." $3}')
echo "version=$VERSION" >> $GITHUB_ENV
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:

- name: Get latest version
run: |
VERSION=$(curl -s https://api.github.com/repos/shopware/shopware/releases/latest | jq -r .tag_name | sed 's/^.//')
VERSION=$(curl -s https://api.github.com/repos/shopware/shopware/tags | jq -r '.[0].name' | sed 's/^.//')
TAG=$(echo $VERSION | tr . ' ' | awk '{print $1 "." $2 "." $3}')
echo "version=$VERSION" >> $GITHUB_ENV
Expand Down

0 comments on commit 6ac1407

Please sign in to comment.