diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index d9e55760..e3fc94ae 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -6,9 +6,9 @@ name: Ultralytics Actions on: push: - branches: [main, master] + branches: [main] pull_request: - branches: [main, master] + branches: [main] # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request types: [opened, closed, synchronize, review_requested] @@ -21,7 +21,8 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, do not modify python: true # format Python code and docstrings - markdown: true # format Markdown and YAML + markdown: true # format Markdown + prettier: true # format YAML spelling: false # check spelling links: false # check broken links summary: true # print PR summary with GPT4 (requires 'openai_api_key' or 'openai_azure_api_key' and 'openai_azure_endpoint') diff --git a/action.yml b/action.yml index b118138c..156b47b2 100644 --- a/action.yml +++ b/action.yml @@ -71,12 +71,6 @@ runs: ref: ${{ github.head_ref || github.ref }} fetch-depth: 0 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.x" - cache: "pip" # caching pip dependencies - - name: Install Dependencies # Note tomli required for codespell with pyproject.toml if: github.event.action != 'closed'