Skip to content

feat(IDX): create bot check code #1

feat(IDX): create bot check code

feat(IDX): create bot check code #1

BRANCH_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
MERGE_BASE_SHA: ${{ github.event.pull_request.base.sha }}
MERGE_BASE="${MERGE_BASE_SHA:-HEAD}"

Check failure on line 8 in .github/workflows/check_repo_policy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/check_repo_policy.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
# we can't use HEAD here because that is the merge commit which contains the changes of the current HEAD of master
COMMIT_RANGE="$MERGE_BASE..${BRANCH_HEAD_SHA:-}"
DIFF_FILES=$(git diff --name-only "${COMMIT_RANGE}")