From 6c3598461242d21f3548311a45604b103a1fc9d2 Mon Sep 17 00:00:00 2001 From: Ultralytics Assistant <135830346+UltralyticsAssistant@users.noreply.github.com> Date: Wed, 14 Aug 2024 21:01:36 +0200 Subject: [PATCH] Update Ultralytics Actions --- .github/workflows/format.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 5b39b9b..56df2b8 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -1,4 +1,4 @@ -# Ultralytics YOLO 🚀, AGPL-3.0 License https://ultralytics.com/license +# Ultralytics 🚀 - AGPL-3.0 License https://ultralytics.com/license # Ultralytics Actions https://github.com/ultralytics/actions # This workflow automatically formats code and documentation in PRs to official Ultralytics standards @@ -7,13 +7,13 @@ name: Ultralytics Actions on: issues: types: [opened] - pull_request_target: + pull_request: branches: [main] types: [opened, closed, synchronize, review_requested] jobs: format: - runs-on: macos-latest + runs-on: ubuntu-latest steps: - name: Run Ultralytics Formatting uses: ultralytics/actions@main @@ -21,12 +21,9 @@ jobs: token: ${{ secrets.PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }} # note GITHUB_TOKEN automatically generated labels: true # autolabel issues and PRs python: true # format Python code and docstrings - markdown: true # format Markdown - prettier: true # format YAML - swift: true # format Swift - spelling: false # check spelling + prettier: true # format YAML, JSON, Markdown and CSS + spelling: true # 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') + summary: true # print PR summary with GPT4o (requires 'openai_api_key') openai_azure_api_key: ${{ secrets.OPENAI_AZURE_API_KEY }} openai_azure_endpoint: ${{ secrets.OPENAI_AZURE_ENDPOINT }} - # openai_api_key: ${{ secrets.OPENAI_API_KEY }}