Skip to content

Commit

Permalink
Disable semver check
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Oct 10, 2023
1 parent 2c62c42 commit b5b9c6c
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,26 @@ jobs:
uses: actions/[email protected]

# Allow only newer versions
- name: Collect versions
run: |
# extract tag part of github.ref
PUSHED_VERSION=$(cut -d'/' -f3 <<< "$GITHUB_REF")
LATEST_RELEASED_VERSION=$(curl -s https://raw.githubusercontent.com/netz98/n98-magerun2/master/version.txt | tr -d '[:space:]')
# Check if curl was successful
if [[ -z "$LATEST_RELEASED_VERSION" ]]; then
echo "Failed to fetch the latest released version."
exit 1
fi
echo "pushed_version=$PUSHED_VERSION" >> "$GITHUB_ENV"
echo "latest_released_version=$LATEST_RELEASED_VERSION" >> "$GITHUB_ENV"
- uses: jackbilestech/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
head: ${{ env.pushed_version }}
base: ${{ env.latest_released_version }}
# - name: Collect versions
# run: |
# # extract tag part of github.ref
# PUSHED_VERSION=$(cut -d'/' -f3 <<< "$GITHUB_REF")
# LATEST_RELEASED_VERSION=$(curl -s https://raw.githubusercontent.com/netz98/n98-magerun2/master/version.txt | tr -d '[:space:]')
#
# # Check if curl was successful
# if [[ -z "$LATEST_RELEASED_VERSION" ]]; then
# echo "Failed to fetch the latest released version."
# exit 1
# fi
#
# echo "pushed_version=$PUSHED_VERSION" >> "$GITHUB_ENV"
# echo "latest_released_version=$LATEST_RELEASED_VERSION" >> "$GITHUB_ENV"
#
# - uses: jackbilestech/[email protected]
# if: startsWith(github.ref, 'refs/tags/')
# with:
# head: ${{ env.pushed_version }}
# base: ${{ env.latest_released_version }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down

0 comments on commit b5b9c6c

Please sign in to comment.