File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 22
22
run : |
23
23
latest_version=$(gh release view --json tagName --jq '.tagName')
24
24
echo "Latest release version is - $latest_version"
25
- echo "::set-output name=release_tag::$ latest_version"
25
+ echo "php_version=${ latest_version}" >> $GITHUB_ENV
26
26
working-directory : xero-php-oauth2
27
27
env :
28
28
GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
33
33
RESPONSE=$(curl -s https://repo.packagist.org/p2/xeroapi/xero-php-oauth2.json)
34
34
LATEST_VERSION=$(echo $RESPONSE | jq -r '.packages["xeroapi/xero-php-oauth2"][0].version')
35
35
echo "latest packagist version $LATEST_VERSION"
36
+ echo "latest_packagist_version=${LATEST_VERSION}" >> $GITHUB_ENV
37
+
38
+ - name : Compare versions
39
+ id : compare_versions
40
+ run : |
41
+ if [ "${{env.php_version}}" == "${{env.latest_packagist_version}}" ]; then
42
+ echo "Packagist is up-to-date"
43
+ echo "packagist_status=success" >> $GITHUB_ENV
44
+ else
45
+ echo "Packgist is not updated yet"
46
+ echo "packagist_status=failure" >> $GITHUB_ENV
47
+
48
+ # - name: Send slack Notification on Success
49
+ # if: ${{ env.packagist_status == 'success' }}
50
+ # uses:
You can’t perform that action at this time.
0 commit comments