Skip to content

Commit

Permalink
Ultralytics Actions JSON, CSS and autolabel support (#57)
Browse files Browse the repository at this point in the history
* Update Ultralytics Actions

* Update format.yml

* Update format.yml

* Update format.yml

---------

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
  • Loading branch information
UltralyticsAssistant and glenn-jocher authored Aug 14, 2024
1 parent 494eeda commit 6b89181
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -13,20 +13,18 @@ on:

jobs:
format:
runs-on: macos-latest
runs-on: macos-14
steps:
- name: Run Ultralytics Formatting
uses: ultralytics/actions@main
with:
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 }}

0 comments on commit 6b89181

Please sign in to comment.