@@ -27,26 +27,26 @@ jobs:
27
27
28
28
29
29
# Allow only newer versions
30
- - name : Collect versions
31
- run : |
32
- # extract tag part of github.ref
33
- PUSHED_VERSION=$(cut -d'/' -f3 <<< "$GITHUB_REF")
34
- LATEST_RELEASED_VERSION=$(curl -s https://raw.githubusercontent.com/netz98/n98-magerun2/master/version.txt | tr -d '[:space:]')
35
-
36
- # Check if curl was successful
37
- if [[ -z "$LATEST_RELEASED_VERSION" ]]; then
38
- echo "Failed to fetch the latest released version."
39
- exit 1
40
- fi
41
-
42
- echo "pushed_version=$PUSHED_VERSION" >> "$GITHUB_ENV"
43
- echo "latest_released_version=$LATEST_RELEASED_VERSION" >> "$GITHUB_ENV"
44
-
45
- -
uses :
jackbilestech/[email protected]
46
- if : startsWith(github.ref, 'refs/tags/')
47
- with :
48
- head : ${{ env.pushed_version }}
49
- base : ${{ env.latest_released_version }}
30
+ # - name: Collect versions
31
+ # run: |
32
+ # # extract tag part of github.ref
33
+ # PUSHED_VERSION=$(cut -d'/' -f3 <<< "$GITHUB_REF")
34
+ # LATEST_RELEASED_VERSION=$(curl -s https://raw.githubusercontent.com/netz98/n98-magerun2/master/version.txt | tr -d '[:space:]')
35
+ #
36
+ # # Check if curl was successful
37
+ # if [[ -z "$LATEST_RELEASED_VERSION" ]]; then
38
+ # echo "Failed to fetch the latest released version."
39
+ # exit 1
40
+ # fi
41
+ #
42
+ # echo "pushed_version=$PUSHED_VERSION" >> "$GITHUB_ENV"
43
+ # echo "latest_released_version=$LATEST_RELEASED_VERSION" >> "$GITHUB_ENV"
44
+ #
45
+ # - uses: jackbilestech/[email protected]
46
+ # if: startsWith(github.ref, 'refs/tags/')
47
+ # with:
48
+ # head: ${{ env.pushed_version }}
49
+ # base: ${{ env.latest_released_version }}
50
50
51
51
- name : Setup PHP
52
52
uses : shivammathur/setup-php@v2
0 commit comments