diff --git a/.github/workflows/check_pr_changes.yaml b/.github/workflows/check_pr_changes.yaml index 024a314c3a..715cc21a5b 100644 --- a/.github/workflows/check_pr_changes.yaml +++ b/.github/workflows/check_pr_changes.yaml @@ -11,12 +11,14 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + fetch-depth: 2 - name: List changed files id: list_files run: | - git diff --name-only origin/master...HEAD > changed_files.txt + git diff --name-only HEAD^1 HEAD > changed_files.txt - name: Check for changes in autopts/wid directory id: check_changes diff --git a/autopts/wid/mcp.py b/autopts/wid/mcp.py index 776fb9e598..3e3e27ae9c 100644 --- a/autopts/wid/mcp.py +++ b/autopts/wid/mcp.py @@ -51,6 +51,8 @@ def hdl_wid_15(params: WIDParams): stack = get_stack() + # test + if stack.mcp.error_opcodes != [2, 3, 4]: return False