File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,19 @@ jobs:
17
17
repository : XeroAPI/xero-php-oauth2
18
18
path : xero-php-oauth2
19
19
20
- # - name: Get package version from composer file
21
- # id: get_composer_version
22
- # run: |
23
- # COMPOSER_VERSION=$(jq -r '.version' composer.json)
20
+ - name : Fetch Latest release number
21
+ id : get_latest_release_number
22
+ run : |
23
+ latest_version=$(gh release view --json tagName --jq '.tagName')
24
+ echo "Latest release version is - $latest_version"
25
+ echo "::set-output name=release_tag::$latest_version"
26
+ working-directory : xero-python
27
+ env :
28
+ GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
24
29
25
30
- name : Get latest version from packgist
26
31
id : get_packagist_version
27
32
run : |
28
33
RESPONSE=$(curl -s https://repo.packagist.org/p2/xeroapi/xero-php-oauth2.json)
29
- LATEST_VERSION=$(echo $RESPONSE | jq -r '.packages[' xeroapi/xero-php-oauth2' ][0].version')
34
+ LATEST_VERSION=$(echo $RESPONSE | jq -r '.packages[" xeroapi/xero-php-oauth2" ][0].version')
30
35
echo "latest packagist version $LATEST_VERSION"
You can’t perform that action at this time.
0 commit comments