Skip to content

Commit 2c73592

Browse files
authored
Merge pull request #62 from ARYPROGRAMMER/ci/cd
feat: added deployment ci/cd to reduce downtime possibility
2 parents 6472d03 + e8e090c commit 2c73592

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/keep-alive.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Keep Render Service Active
2+
3+
on:
4+
schedule:
5+
# Runs every 5 minutes
6+
- cron: '*/5 * * * *'
7+
workflow_dispatch: # Manual trigger
8+
9+
jobs:
10+
ping:
11+
name: Ping Service
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Send HTTP Request
16+
run: |
17+
response=$(curl -s -w "\n%{http_code}" https://sociosell.onrender.com/ || echo "Request failed")
18+
echo "Ping executed at $(date)"
19+
echo "Response: $response"
20+
21+
- name: Check Response
22+
if: failure()
23+
run: echo "Ping attempt failed, but continuing workflow"

0 commit comments

Comments
 (0)