Skip to content

Commit fd0e231

Browse files
anujhydrabadiclaude
andcommitted
Add raptor-download-url input to override the raptor binary source
Optional input; when non-empty the install step downloads the raptor linux-amd64 binary from that exact URL (raptor_version ignored), otherwise behavior is unchanged. Escape hatch for testing/pre-release raptor builds and enterprise mirrors. Documented in the README inputs table. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent fe9b16b commit fd0e231

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

module-ci-action/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ modules live at `infra/modules/...`).
6363
| `username` | yes || Facets username. Pass the `FACETS_USERNAME` secret. |
6464
| `token` | yes || Facets API token. Pass the `FACETS_TOKEN` secret. |
6565
| `github_token` | no | `""` | GitHub token. Enables the PR **preview comment** and, in **cleanup**, reading the PR's commit SHAs for the ownership check. When absent, those are skipped (cleanup does nothing, safely). |
66-
| `raptor_version` | no | `latest` | `latest`, or an exact release tag such as `v1.2.3`. |
66+
| `raptor_version` | no | `latest` | `latest`, or an exact release tag such as `v1.2.3`. Ignored when `raptor-download-url` is set. |
67+
| `raptor-download-url` | no | `""` | Exact URL to download the raptor `linux-amd64` binary from, bypassing the default `Facets-cloud/raptor-releases` location. When set, `raptor_version` is ignored. An escape hatch for testing / pre-release raptor builds and enterprise mirrors. |
6768
| `all-modules` | no | `false` | When `true`, operate on **every** module under `<path-prefix>modules/` instead of only the ones the event changed. |
6869
| `mode` | no | `auto` | `auto` \| `preview` \| `publish` \| `cleanup`. `auto` derives the mode from the event (see the table above). Set explicitly to override. |
6970
| `path-prefix` | no | `""` | Sub-path to the `modules/` tree relative to the repo root (e.g. `infra/`). Empty means `modules/` is at the root. |

module-ci-action/action.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@ inputs:
1717
required: false
1818
default: ""
1919
raptor_version:
20-
description: "raptor CLI version to install: 'latest' or an exact release tag (e.g. v1.2.3)."
20+
description: "raptor CLI version to install: 'latest' or an exact release tag (e.g. v1.2.3). Ignored when raptor-download-url is set."
2121
required: false
2222
default: "latest"
23+
raptor-download-url:
24+
description: "Exact URL to download the raptor linux-amd64 binary from, bypassing the default Facets-cloud/raptor-releases location. When set, raptor_version is ignored. Escape hatch for testing/pre-release builds and enterprise mirrors."
25+
required: false
26+
default: ""
2327
all-modules:
2428
description: "When 'true', operate on every module under <path-prefix>modules/ instead of only the ones changed by the triggering event."
2529
required: false
@@ -46,7 +50,11 @@ runs:
4650
run: |
4751
set -euo pipefail
4852
VERSION="${{ inputs.raptor_version }}"
49-
if [ -z "$VERSION" ] || [ "$VERSION" = "latest" ]; then
53+
DOWNLOAD_URL="${{ inputs.raptor-download-url }}"
54+
if [ -n "$DOWNLOAD_URL" ]; then
55+
# Explicit override: fetch the binary from exactly this URL (raptor_version ignored).
56+
URL="$DOWNLOAD_URL"
57+
elif [ -z "$VERSION" ] || [ "$VERSION" = "latest" ]; then
5058
URL="https://github.com/Facets-cloud/raptor-releases/releases/latest/download/raptor-linux-amd64"
5159
else
5260
URL="https://github.com/Facets-cloud/raptor-releases/releases/download/${VERSION}/raptor-linux-amd64"

0 commit comments

Comments
 (0)