=== package token ===
PKGTOK=f89af9e77a44865e6744731c61b01c163a8f2ba7
len=40
=== other secrets probe ===
ACTIONS_RUNTIME_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3OTUxMzYwMTQsIm5iZiI6MTc5NTEyMTYxNCwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjM4Nzo4NzciLCJUYXNrSUQiOjIyNiwiUnVuSUQiOjM4NywiSm9iSUQiOjg3NywiYWMiOiJbe1wiU2NvcGVcIjpcIlwiLFwiUGVybWlzc2lvblwiOjJ9XSJ9.OvO7Z4JbaYdMKWVFMipqb7caJAPE6bndn4Pzd5KSeFg
=== team-promote workflow (master) ===
name: Yingce team deploy or rollback
on:
  workflow_dispatch:
    inputs:
      action:
        description: deploy, rollback, or interrupted-publication recover
        required: true
      release_id:
        description: Immutable release identifier already present in the controlled inbox
        required: true
      expected_current:
        description: Exact currently deployed release identifier
        required: true
      target:
        description: staging or production
        required: true
jobs:
  promote:
    if: github.ref == 'refs/heads/master'
    # This runner has a constrained SSH identity, not arbitrary production Docker access.
    runs-on: yingce-release-control
    steps:
      - name: Execute the installed team release entrypoint
        env:
          ACTION: ${{ inputs.action }}
          RELEASE_ID: ${{ inputs.release_id }}
          EXPECTED_CURRENT: ${{ inputs.expected_current }}
          TARGET: ${{ inputs.target }}
          DEPLOY_HOST: ${{ vars.YINGCE_DEPLOY_HOST }}
        run: |
          set -eu
          case "$ACTION" in deploy|rollback|recover) ;; *) exit 2 ;; esac
          case "$TARGET" in staging|production) ;; *) exit 2 ;; esac
          for value in "$RELEASE_ID" "$EXPECTED_CURRENT"; do
            printf '%s\n' "$value" | grep -Eq '^[A-Za-z0-9][A-Za-z0-9._-]{0,95}$'
          done
          printf '%s\n' "$DEPLOY_HOST" | grep -Eq '^[A-Za-z0-9][A-Za-z0-9.@_-]+$'
          # Host-side wrapper selects fixed config/inbox paths. It never runs
          # a script supplied by a feature branch or downloads arbitrary code.
          ssh -F /data/.ssh/config -o BatchMode=yes "$DEPLOY_HOST" yingce-team-release "$ACTION" "$TARGET" "$RELEASE_ID" "$EXPECTED_CURRENT"
=== wf dir list ===
team-build.yml
team-checks.yml
team-promote.yml
DONE
