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 4
4
push :
5
5
branches :
6
6
- retina # Change to your deployment branch
7
+ paths-ignore :
8
+ - ' **.md' # Ignore markdown file updates if necessary
7
9
8
10
jobs :
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)
11
13
runs-on : ubuntu-latest
12
14
13
15
steps :
14
16
- name : Trigger Render Deployment
15
- run : |
16
- curl -X POST "$RENDER_DEPLOY_HOOK"
17
17
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