Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ concurrency:

jobs:
aio-build:
uses: JSONbored/aio-fleet/.github/workflows/aio-build.yml@c2c7c9a58496ce5c65e8952dc57fe455f8547833
uses: JSONbored/aio-fleet/.github/workflows/aio-build.yml@294c30f6f88dcabf2ef7467f0def0ad4e3b18b74
permissions:
contents: read
packages: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:

jobs:
check-upstream:
uses: JSONbored/aio-fleet/.github/workflows/aio-check-upstream.yml@c2c7c9a58496ce5c65e8952dc57fe455f8547833
uses: JSONbored/aio-fleet/.github/workflows/aio-check-upstream.yml@294c30f6f88dcabf2ef7467f0def0ad4e3b18b74
permissions:
contents: write
pull-requests: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions:

jobs:
publish-release:
uses: JSONbored/aio-fleet/.github/workflows/aio-publish-release.yml@c2c7c9a58496ce5c65e8952dc57fe455f8547833
uses: JSONbored/aio-fleet/.github/workflows/aio-publish-release.yml@294c30f6f88dcabf2ef7467f0def0ad4e3b18b74
permissions:
actions: read
contents: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions:

jobs:
prepare-release:
uses: JSONbored/aio-fleet/.github/workflows/aio-prepare-release.yml@c2c7c9a58496ce5c65e8952dc57fe455f8547833
uses: JSONbored/aio-fleet/.github/workflows/aio-prepare-release.yml@294c30f6f88dcabf2ef7467f0def0ad4e3b18b74
permissions:
contents: write
pull-requests: write
Expand Down
10 changes: 7 additions & 3 deletions scripts/release.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
#!/usr/bin/env python3
from __future__ import annotations

import os
import sys
from pathlib import Path


def _add_local_aio_fleet() -> None:
repo_root = Path(__file__).resolve().parents[1]
configured_path = os.environ.get("AIO_FLEET_PATH")
for candidate in (
Path(configured_path).expanduser() / "src" if configured_path else None,
repo_root / ".aio-fleet" / "src",
repo_root.parent / "aio-fleet" / "src",
):
if candidate.exists():
if candidate and candidate.exists():
sys.path.insert(0, str(candidate))
return

Expand All @@ -23,8 +26,9 @@ def main() -> int:
except ModuleNotFoundError as exc:
raise SystemExit(
"aio_fleet.release is required. Run from the standard workspace with "
"../aio-fleet present, or let the reusable aio-fleet workflows check "
"out .aio-fleet before invoking this shim."
"../aio-fleet present, set AIO_FLEET_PATH to a local aio-fleet checkout, "
"or let the reusable aio-fleet workflows check out .aio-fleet before "
"invoking this shim."
) from exc

return int(
Expand Down
Loading