Skip to content

Commit

Permalink
ci: updated the pipeline step
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Oct 22, 2024
1 parent cf0db65 commit 7e57f92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/check-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ jobs:
- name: Get latest version from packgist
id: get_packagist_version
run: |
PACKAGE_NAME=$(jq -r '.name' composer.json)
echo "package name - $PACKAGE_NAME"
RESPONSE=$(curl -s https://packagist.org/packages/${PACKAGE_NAME}.json)
RESPONSE=$(curl -s https://repo.packagist.org/p2/xeroapi/xero-php-oauth2.json)
echo "response ***** $RESPONSE"
LATEST_VERSION=$(echo $RESPONSE | jq -r '.package.versions[0].version')
echo "latest packagist version $LATEST_VERSION"

0 comments on commit 7e57f92

Please sign in to comment.