Clean up shared action warnings (#865)

This commit is contained in:
Glenn Jocher
2026-08-10 03:22:34 +02:00
committed by GitHub
parent 6ce85d2266
commit 6a6c06d548
6 changed files with 12 additions and 5 deletions
+2
View File
@@ -108,6 +108,8 @@ runs:
python-version: ${{ inputs.python-version }}
- uses: ultralytics/actions/setup-uv@main
with:
ignore-empty-workdir: true
- name: Install Dependencies
# Note tomli required for codespell with pyproject.toml
env:
+1 -1
View File
@@ -28,4 +28,4 @@
# ├── test_summarize_pr.py
# └── ...
__version__ = "0.3.3"
__version__ = "0.3.4"
+3 -2
View File
@@ -114,8 +114,9 @@ def main(*args, **kwargs):
if event.pr.get("merged"):
print("PR is merged, labeling fixed issues...")
pr_credit = label_fixed_issues(event, summary)
print("Removing TODO label from PR...")
event.remove_labels(event.pr["number"], labels=("TODO",))
if any(label["name"].casefold() == "todo" for label in event.pr.get("labels", [])):
print("Removing TODO label from PR...")
event.remove_labels(event.pr["number"], labels=("TODO",))
if pr_credit:
print("Posting PR author thank you message...")
event.add_comment(
-2
View File
@@ -28,7 +28,6 @@ dynamic = ["version"]
description = "Ultralytics Actions for GitHub automation and PR management."
readme = "README.md"
requires-python = ">=3.8"
license = { text = "AGPL-3.0" }
keywords = [
"github-actions",
"ci-cd",
@@ -50,7 +49,6 @@ maintainers = [
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
+1
View File
@@ -21,3 +21,4 @@ Provides Ultralytics defaults for the official [uv setup action](https://github.
| `activate-environment` | Create and activate a `.venv` environment | No | `false` |
| `enable-cache` | Cache uv downloads between workflow runs | No | `false` |
| `cache-dependency-glob` | Dependency files used to invalidate cache | No | `**/uv.lock` |
| `ignore-empty-workdir` | Suppress warnings for an empty workdir | No | `false` |
+5
View File
@@ -19,6 +19,10 @@ inputs:
description: "Dependency files used to invalidate the uv cache"
required: false
default: "**/uv.lock"
ignore-empty-workdir:
description: "Suppress the warning when the working directory is intentionally empty"
required: false
default: "false"
runs:
using: "composite"
@@ -29,4 +33,5 @@ runs:
activate-environment: ${{ inputs.activate-environment }}
enable-cache: ${{ inputs.enable-cache }}
cache-dependency-glob: ${{ inputs.cache-dependency-glob }}
ignore-empty-workdir: ${{ inputs.ignore-empty-workdir }}
ignore-nothing-to-cache: true