Skip to content

Commit 4abbb29

Browse files
nsheapsclaude
andauthored
Remove sync-name-prefix input; use bare directory name (#12)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 7374481 commit 4abbb29

2 files changed

Lines changed: 4 additions & 18 deletions

File tree

‎.github/actions/arcane-deploy/action.sh‎

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ AUTO_SYNC="${INPUT_AUTO_SYNC:-true}"
1616
SYNC_INTERVAL="${INPUT_SYNC_INTERVAL:-5}"
1717
TRIGGER_SYNC="${INPUT_TRIGGER_SYNC:-true}"
1818
ENV_VARS="${INPUT_ENV_VARS:-}"
19-
SYNC_NAME_PREFIX="${INPUT_SYNC_NAME_PREFIX:-${GITHUB_REPOSITORY##*/}}"
2019

2120
# [C1/C2] Mask secrets immediately, before any logging or API calls
2221
[[ -n "${API_KEY}" ]] && echo "::add-mask::${API_KEY}"
@@ -167,25 +166,18 @@ discover_compose_files() {
167166

168167
# --- Sync Naming ---
169168
# Derive a sync name from a compose file path.
170-
# "stacks/myapp/compose.yml" -> "${prefix}-myapp"
171-
# "compose.yml" (root) -> "${prefix}"
169+
# "stacks/myapp/compose.yml" -> "myapp"
170+
# "compose.yml" (root) -> "root"
172171
sync_name_from_path() {
173172
local path="$1"
174173
local dir
175174
dir=$(dirname "${path}")
176175

177-
local name
178176
if [[ "${dir}" == "." ]]; then
179-
name="${SYNC_NAME_PREFIX}"
177+
echo "root"
180178
else
181-
name=$(basename "${dir}")
182-
# Avoid "prefix-prefix" when the directory name matches the prefix
183-
if [[ "${name}" != "${SYNC_NAME_PREFIX}" ]]; then
184-
name="${SYNC_NAME_PREFIX}-${name}"
185-
fi
179+
basename "${dir}"
186180
fi
187-
188-
echo "${name}"
189181
}
190182

191183
# --- Repository Management ---

‎.github/actions/arcane-deploy/action.yml‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ inputs:
7272
required: false
7373
default: 'true'
7474

75-
sync-name-prefix:
76-
description: 'Prefix for sync names in Arcane. Defaults to the GitHub repository name.'
77-
required: false
78-
default: ''
79-
8075
# Workflow environment variables
8176
env-vars:
8277
description: 'Environment variables (KEY=VALUE per line) to export to the GitHub Actions runner via $GITHUB_ENV. These are available to subsequent workflow steps, NOT inside deployed containers. Values are automatically masked in logs.'
@@ -117,5 +112,4 @@ runs:
117112
INPUT_AUTO_SYNC: ${{ inputs.auto-sync }}
118113
INPUT_SYNC_INTERVAL: ${{ inputs.sync-interval }}
119114
INPUT_TRIGGER_SYNC: ${{ inputs.trigger-sync }}
120-
INPUT_SYNC_NAME_PREFIX: ${{ inputs.sync-name-prefix }}
121115
INPUT_ENV_VARS: ${{ inputs.env-vars }}

0 commit comments

Comments
 (0)