@@ -92,9 +92,6 @@ go test -v -run TestLoadEnv_Success ./internal/config
9292# Local development (requires GITHUB_WORKSPACE to be set)
9393export GITHUB_WORKSPACE=/path/to/repo
9494./agent-metadata-action
95-
96- # Or use run_local.sh for testing
97- ./run_local.sh
9895```
9996
10097## Architecture
@@ -371,7 +368,7 @@ export GITHUB_WORKSPACE=/path/to/repo
371368- ` newrelic-client-id ` (required): NewRelic client ID for authentication
372369- ` newrelic-private-key ` (required): NewRelic private key content (base64-encoded)
373370- ` agent-type ` (optional): Agent type (e.g., "NRDotNetAgent")
374- - ` version ` (optional): Agent version in semver format (e.g., "1 .2.3" or "v1.2.3")
371+ - ` version ` (optional): Agent version tag name (e.g., "v1 .2.3"). Must match the exact git tag name for checkout.
375372- ` fetch-depth ` (optional, default: 1): Number of commits to fetch (>1 may be needed for docs flow)
376373- ` cache ` (optional, default: true): Enable Go build caching
377374- ` oci-registry ` (optional): OCI registry URL for binary uploads (e.g., "ghcr.io/newrelic/agents"). Leave empty to skip binary upload.
@@ -381,11 +378,11 @@ export GITHUB_WORKSPACE=/path/to/repo
381378
382379** Steps:**
383380
384- 1 . ** Normalize version tag ** : Prepends "v" to version if not present for tag checkout
385- - Output: ` ref ` variable with normalized version tag
381+ 1 . ** Set version ref ** : Sets the version tag for checkout
382+ - Output: ` ref ` variable with the exact version tag provided
386383
3873842 . ** Checkout repository** : Uses ` actions/checkout@v4 `
388- - For agent flow: Checks out the normalized version tag (e.g., "v1.2.3")
385+ - For agent flow: Checks out the exact version tag as provided (e.g., "v1.2.3")
389386 - For docs flow: Checks out the PR commit (when ` ref ` is empty)
390387 - Uses ` fetch-depth ` input for controlling commit history depth
391388 - Sets ` GITHUB_WORKSPACE ` environment variable automatically
@@ -426,7 +423,7 @@ export GITHUB_WORKSPACE=/path/to/repo
426423
427424** Key behaviors:**
428425- The action automatically handles repository checkout, so users don't need a separate ` actions/checkout ` step
429- - Version normalization ensures consistent tag format (with "v" prefix )
426+ - Version tag must match the exact git tag name (no automatic normalization )
430427- Authentication is handled automatically and securely (credentials masked in logs)
431428- Both agent and docs flows are supported based on whether inputs are provided
432429- OCI binary uploads are optional and only occur in agent flow when ` oci-registry ` is configured
0 commit comments