Skip to content

fix: Remove unsupported script_stop parameter from deployment workflow - #994

Merged
canihavesomecoffee merged 2 commits into
masterfrom
fix/deployment-workflow-script-stop
Jan 3, 2026
Merged

canihavesomecoffee merged 2 commits into
masterfrom
fix/deployment-workflow-script-stop

Conversation

@cfsmp3

@cfsmp3 cfsmp3 commented Jan 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Removes the unsupported script_stop parameter from all SSH action steps in the deployment workflow
  • Adds set -e to scripts that previously used script_stop: true to maintain exit-on-error behavior
  • Fixes 301 redirect issue: Adds -L flag to curl in post_deploy.sh so it follows HTTP→HTTPS redirects

Problem

Two issues were causing deployment failures:

  1. script_stop parameter: The appleboy/ssh-action no longer supports the script_stop parameter:

    "Unexpected input(s) 'script_stop', valid inputs are [...]"

  2. 301 redirect: The health check was getting HTTP 301 because nginx redirects HTTP to HTTPS, but curl wasn't following the redirect:

    • curl http://127.0.0.1/health → 301 redirect
    • Script expected 200, so health check failed

See: https://github.com/CCExtractor/sample-platform/actions/runs/20676857945/job/59365631342

Test plan

  • Trigger a deployment and verify it completes successfully
  • Verify health check follows the HTTPS redirect and gets 200

🤖 Generated with Claude Code

The appleboy/ssh-action no longer supports the `script_stop` parameter.
Replace with `set -e` in scripts that need to stop on first error.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The health check was failing with 301 because nginx redirects
HTTP to HTTPS. Adding -L makes curl follow the redirect and
get the actual health endpoint response.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Jan 3, 2026

Copy link
Copy Markdown

@canihavesomecoffee
canihavesomecoffee merged commit 1957dc8 into master Jan 3, 2026
5 checks passed
@cfsmp3
cfsmp3 deleted the fix/deployment-workflow-script-stop branch January 3, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants