diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 8f4f2aa..589a447 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -35,17 +35,17 @@ jobs: fi - name: Check bump type run: | - git fetch NEW_BUMP_TYPE="" if [[ $INPUT_TITLE =~ \[(.*)\] ]]; then NEW_BUMP_TYPE="${BASH_REMATCH[1]}" else echo "Bump type not found" >&2; exit 1; fi - if [[ "$NEW_BUMP_TYPE" == "$none" ]]; then + if [[ "$NEW_BUMP_TYPE" == "none" ]]; then echo "Bump type none, skip compare" exit 0 fi + git fetch base_branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} target_branch=${{ github.event.pull_request.base.ref }} chmod +x ./scripts/helpers/build_and_dump.sh