diff --git a/Makefile b/Makefile index b37480a..741aa21 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ phony: help # Release tag for the action -VERSION := v0.1 +VERSION := v0.2 # GitHub Actions bogus variables GITHUB_REF ?= refs/heads/null diff --git a/entrypoint.sh b/entrypoint.sh index 536836d..8ae8e4c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -51,7 +51,7 @@ if [[ $(git rev-parse --revs-only "${SOURCE_BRANCH}") == $(git rev-parse --revs- fi echo -e "\nComparing branches by diff" -if [[ -z $(git diff "${TARGET_BRANCH}..${SOURCE_BRANCH}") ]]; then +if [[ -z $(git diff "remotes/origin/${TARGET_BRANCH}..remotes/origin/${SOURCE_BRANCH}") ]]; then echo -e "\n[INFO] Both branches are the same. No action needed." exit 0 fi