Ghost Actions Deploy Theme is Error (Github Action Error)

My GitHub Action faced the error in deployment today, I have no idea about it from Ghost or GitHub side.

The error happened today, it was fine yesterday.

The deployment error is as below:

Run TryGhost/action-deploy-theme@v1.4.1
Error: Request failed with status code 503
/usr/bin/zip -r ubud.zip . -x *.git* *.zip yarn* npm* node_modules* *routes.yaml *redirects.yaml *redirects.json
    at createError (/home/runner/work/_actions/TryGhost/action-deploy-theme/v1.4.1/dist/index.js:975:15)
  adding: home-image-circle.hbs (deflated 58%)
    at settle (/home/runner/work/_actions/TryGhost/action-deploy-theme/v1.4.1/dist/index.js:8530:12)
  adding: partials/ (stored 0%)
    at IncomingMessage.handleStreamEnd (/home/runner/work/_actions/TryGhost/action-deploy-theme/v1.4.1/dist/index.js:9559:11)
    at IncomingMessage.emit (events.js:215:7)
    at endReadableNT (_stream_readable.js:1184:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  isAxiosError: true,
  toJSON: [Function]
}
...

Anyone is in the same situation?

It looks like your logs got mangled, but it seems like Ghost was (re)starting when you tried to deploy

I found the cause. Cloudflare Firewall Bot Fight Mode challenged the request.

Turn it off, the issue is resolved.

Just rather weird, Cloudflare added the Github IP to its blacklist recently.

2 Likes