gowalk-cicd 1.0.223 → 1.0.224

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -574,6 +574,10 @@ The backend message is `gowalk-cicd/backend-deploy-failed.v1 phase=<phase> exit_
574
574
  fixed fields without JSON braces, which GitHub can mask when a multiline secret has brace-only lines.
575
575
  Consumers validate the complete envelope, the known phase and exit code 1–255; older JSON messages
576
576
  remain readable by the panel. Masked fields are never reconstructed and credential masking stays enabled.
577
+ During sync, `backend_sync_failed` adds `gowalk-cicd/backend-sync-failed.v1 operation=<operation>
578
+ exit_code=<code>`. Operations are `mkdir_project`, `mkdir_nested`, `rsync_source`, `rsync_nested`,
579
+ `rsync_compose`, `rsync_helpers`, or `unclassified`. This identifies the failed client operation,
580
+ not the host gate's policy or ownership cause; it contains no command, path, host, output or secret.
577
581
  Protected vhost failures add `backend_vhost_failed` (`gowalk-cicd/backend-vhost-failed.v1`) with fixed
578
582
  brace-free `operation`, `stage`, `reason`, `child_exit` and `signals`; see `docs/BACKEND_EDGE.md`.
579
583
  It preserves the existing refusal and records only bounded observed facts, never private child output.
@@ -207,25 +207,31 @@ runs:
207
207
  BACKEND_DEPLOY_PHASE=sync_backend
208
208
  SSH="ssh -p ${DEPLOY_SSH_PORT:-22} -i ~/.ssh/backend_deploy -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes"
209
209
  DEST="/opt/gowalk-backends/${{ inputs.app-name }}"
210
+ BACKEND_SYNC_OPERATION=mkdir_project
210
211
  $SSH "${{ inputs.ssh-user }}@${{ inputs.host }}" "mkdir -p '$DEST'"
211
212
  # --delete keeps the mirror true; preserve the private server-side env files
212
213
  # until their replacement validates so failed credential updates retain the old file.
213
214
  if [ "${COMPOSE_FILE%/*}" = "$BACKEND_DIR" ]; then
215
+ BACKEND_SYNC_OPERATION=rsync_source
214
216
  rsync -az --delete --exclude '.env' --exclude '.runtime.env' --exclude '.git' \
215
217
  --exclude '.backend-edge.json' --exclude '.backend-ingress.conf' --exclude '.backend-public.env' \
216
218
  -e "$SSH" "$BACKEND_DIR/" \
217
219
  "${{ inputs.ssh-user }}@${{ inputs.host }}:$DEST/"
218
220
  else
221
+ BACKEND_SYNC_OPERATION=mkdir_nested
219
222
  $SSH "${{ inputs.ssh-user }}@${{ inputs.host }}" \
220
223
  "mkdir -p '$DEST/$BACKEND_DIR'"
224
+ BACKEND_SYNC_OPERATION=rsync_nested
221
225
  rsync -az --delete --exclude '.env' --exclude '.runtime.env' --exclude '.git' \
222
226
  -e "$SSH" "$BACKEND_DIR/" \
223
227
  "${{ inputs.ssh-user }}@${{ inputs.host }}:$DEST/$BACKEND_DIR/"
228
+ BACKEND_SYNC_OPERATION=rsync_compose
224
229
  rsync -az -e "$SSH" "$COMPOSE_FILE" \
225
230
  "${{ inputs.ssh-user }}@${{ inputs.host }}:$DEST/${COMPOSE_FILE##*/}"
226
231
  fi
227
232
  # Ship remote helpers after the application mirror. They are package
228
233
  # owned and kept out of the consumer's source tree.
234
+ BACKEND_SYNC_OPERATION=rsync_helpers
229
235
  rsync -az -e "$SSH" \
230
236
  "${{ github.action_path }}/remote_deploy.sh" \
231
237
  "${{ github.action_path }}/select_certbot_account.sh" \
@@ -11,6 +11,15 @@ backend_report_failure() {
11
11
  # Multiline JSON secrets can make GitHub mask standalone braces. Keep fixed evidence readable.
12
12
  printf '::error title=backend_deploy_failed::gowalk-cicd/backend-deploy-failed.v1 phase=%s exit_code=%s\n' \
13
13
  "$phase" "$status"
14
+ if [ "$phase" = sync_backend ]; then
15
+ local operation="${BACKEND_SYNC_OPERATION:-unclassified}"
16
+ case "$operation" in
17
+ mkdir_project|mkdir_nested|rsync_source|rsync_nested|rsync_compose|rsync_helpers) ;;
18
+ *) operation=unclassified ;;
19
+ esac
20
+ printf '::error title=backend_sync_failed::gowalk-cicd/backend-sync-failed.v1 operation=%s exit_code=%s\n' \
21
+ "$operation" "$status"
22
+ fi
14
23
  return "$status"
15
24
  }
16
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gowalk-cicd",
3
- "version": "1.0.223",
3
+ "version": "1.0.224",
4
4
  "description": "Zero-config GitHub Actions delivery for iOS TestFlight and Android Google Play.",
5
5
  "type": "module",
6
6
  "bin": {