Skip to content

Add a saftey check before deployment to the web server - #49

Merged
c-p-schmidt merged 1 commit into
4C-multiphysics:mainfrom
c-p-schmidt:add-check-that-src-directory-is-not-empty
Sep 9, 2026
Merged

c-p-schmidt merged 1 commit into
4C-multiphysics:mainfrom
c-p-schmidt:add-check-that-src-directory-is-not-empty

Conversation

@c-p-schmidt

Copy link
Copy Markdown
Contributor

Fail if the source directory to be synced to the server is empty. Sync it to the web server if not.

@c-p-schmidt c-p-schmidt self-assigned this Sep 9, 2026
@c-p-schmidt
c-p-schmidt requested review from maxiludwig and a lite review from Copilot September 9, 2026 11:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new emptiness check can be bypassed if cd $LOCAL_DIR fails and currently exits without a diagnostic message, which can lead to unintended deployments and hard-to-debug failures.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds a guardrail to the deployment workflow so the job fails when there’s nothing to deploy, preventing accidental “empty deploys” to the web server.

Changes:

  • Add a local-directory emptiness check before running the lftp mirror upload.
  • Add brief inline comments describing the new safety check and the sync step.
File summaries
File Description
.github/workflows/deploy.yml Adds a pre-deploy empty-directory check before syncing artifacts to the web server.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/deploy.yml
maxiludwig
maxiludwig previously approved these changes Sep 9, 2026

@maxiludwig maxiludwig left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 🚀

to the server is empty. Sync it to the web server if not.
@c-p-schmidt
c-p-schmidt force-pushed the add-check-that-src-directory-is-not-empty branch from 4994b1c to 25dbf14 Compare September 9, 2026 12:21
@c-p-schmidt
c-p-schmidt merged commit 91ae61a into 4C-multiphysics:main Sep 9, 2026
2 checks passed
@c-p-schmidt
c-p-schmidt deleted the add-check-that-src-directory-is-not-empty branch September 9, 2026 15:05
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.

3 participants