From c92448988d1e5df07af7f037c820e0d5d52a3759 Mon Sep 17 00:00:00 2001 From: UltralyticsAssistant Date: Tue, 15 Oct 2024 15:59:58 +0200 Subject: [PATCH] Refactor code for speed and clarity --- .github/workflows/format.yml | 5 ++--- .github/workflows/tag.yml | 4 ++-- README.md | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 56df2b8..5254bf3 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -18,12 +18,11 @@ jobs: - name: Run Ultralytics Formatting uses: ultralytics/actions@main with: - token: ${{ secrets.PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }} # note GITHUB_TOKEN automatically generated + token: ${{ secrets._GITHUB_TOKEN }} # note GITHUB_TOKEN automatically generated labels: true # autolabel issues and PRs python: true # format Python code and docstrings prettier: true # format YAML, JSON, Markdown and CSS spelling: true # check spelling links: false # check broken links 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 }} diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index e462fdf..e122e29 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -32,7 +32,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }} + token: ${{ secrets._GITHUB_TOKEN }} - name: Git config run: | @@ -69,7 +69,7 @@ jobs: - name: Publish new release env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }} CURRENT_TAG: ${{ github.event.inputs.tag_name }} run: | curl -s "https://raw.githubusercontent.com/ultralytics/actions/main/utils/summarize_release.py" | python - diff --git a/README.md b/README.md index fae45ee..78e03da 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ # 📚 Ultralytics Handbook -Welcome to the **Ultralytics Handbook repository**, the source for all the content that forms the official [Ultralytics Handbook](https://handbook.ultralytics.com). This repository contains Markdown files that outline our **mission, vision, values, and internal practices**, and is designed to provide clarity on how Ultralytics operates. The Handbook is built using **MkDocs Material** and is continuously updated to reflect the latest company guidelines. It is deployed via GitHub Pages to [https://handbook.ultralytics.com](https://handbook.ultralytics.com). +Welcome to the **Ultralytics Handbook repository**, the source for all the content that forms the official [Ultralytics Handbook](https://handbook.ultralytics.com/). This repository contains Markdown files that outline our **mission, vision, values, and internal practices**, and is designed to provide clarity on how Ultralytics operates. The Handbook is built using **MkDocs Material** and is continuously updated to reflect the latest company guidelines. It is deployed via GitHub Pages to [https://handbook.ultralytics.com](https://handbook.ultralytics.com/). [![pages-build-deployment](https://github.com/ultralytics/handbook/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/ultralytics/handbook/actions/workflows/pages/pages-build-deployment) [![Check Broken links](https://github.com/ultralytics/handbook/actions/workflows/links.yml/badge.svg)](https://github.com/ultralytics/handbook/actions/workflows/links.yml) @@ -55,7 +55,7 @@ To deploy the Handbook to GitHub Pages or any other hosting platform: mkdocs gh-deploy ``` -For a custom domain, update the "Custom domain" settings in your GitHub repository to use [handbook.ultralytics.com](https://handbook.ultralytics.com). +For a custom domain, update the "Custom domain" settings in your GitHub repository to use [handbook.ultralytics.com](https://handbook.ultralytics.com/). ![Deployment Example](https://user-images.githubusercontent.com/26833433/210150206-9e86dcd7-10af-43e4-9eb2-9518b3799eac.png)