File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - retina # Change to your deployment branch
7+ paths-ignore :
8+ - ' **.md' # Ignore markdown file updates if necessary
79
810jobs :
9- deploy-to-render :
10- needs : build-and-push # Ensure this runs only after the Docker image is pushed
11+ deploy :
12+ if : github.event.head_commit.parent_ids # Ensures it's not an empty commit (merge commits have multiple parents)
1113 runs-on : ubuntu-latest
1214
1315 steps :
1416 - name : Trigger Render Deployment
15- run : |
16- curl -X POST "$RENDER_DEPLOY_HOOK"
1717 env :
18- RENDER_DEPLOY_HOOK : ${{ secrets.RENDER_DEPLOY_HOOK }}
18+ RENDER_DEPLOY_HOOK : ${{ secrets.RENDER_DEPLOY_HOOK }}
19+ run : |
20+ if [[ -z "$RENDER_DEPLOY_HOOK" ]]; then
21+ echo "Error: RENDER_DEPLOY_HOOK is not set."
22+ exit 1
23+ fi
24+ curl -X POST "$RENDER_DEPLOY_HOOK" || { echo "Render deployment trigger failed"; exit 1; }
You can’t perform that action at this time.
0 commit comments