mirror of
https://github.com/dcronqvist/DotTiled.git
synced 2025-05-08 15:56:04 +03:00
More stuff
This commit is contained in:
parent
3e2572569e
commit
f986b55527
1 changed files with 6 additions and 1 deletions
7
.github/workflows/master-pr.yml
vendored
7
.github/workflows/master-pr.yml
vendored
|
@ -35,7 +35,12 @@ jobs:
|
|||
|
||||
- name: Compare versions
|
||||
run: |
|
||||
if [ "$(printf '%s\n' "$PR_VERSION" "$MASTER_VERSION" | sort -V | head -n1)" = "$PR_VERSION" ] && [ "$PR_VERSION" != "$MASTER_VERSION" ]; then
|
||||
if [ -z "$PR_VERSION" ] || [ -z "$MASTER_VERSION" ]; then
|
||||
echo "One of the version variables is empty."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$(printf '%s\n' "$MASTER_VERSION" "$PR_VERSION" | sort -V | tail -n1)" != "$PR_VERSION" ] || [ "$PR_VERSION" = "$MASTER_VERSION" ]; then
|
||||
echo "Version in PR is not higher than master."
|
||||
exit 1
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue