diff --git a/.github/workflows/update_hosts.yml b/.github/workflows/update_hosts.yml index 1c060d1..a639a84 100644 --- a/.github/workflows/update_hosts.yml +++ b/.github/workflows/update_hosts.yml @@ -40,10 +40,14 @@ jobs: python -m pip install --upgrade pip sudo pip install -r requirements.txt - - name: black-format + - name: Check files using the black formatter uses: datadog/action-py-black-formatter@v2.1 + id: action_black + - name: Annotate diff changes using reviewdog + if: steps.action_black.outputs.is_formatted == 'true' + uses: reviewdog/action-suggester@v1 with: - check_mode: "true" + tool_name: blackfmt - name: Run hosts update script1