From c4d23ecb6866f2a630d80de2be7ac1c159dd3dbc Mon Sep 17 00:00:00 2001 From: nilesh05apr Date: Sat, 8 Oct 2022 17:18:49 +0530 Subject: [PATCH 1/2] add: gh workflow to keep server alive --- .github/workflows/ping.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/ping.yml diff --git a/.github/workflows/ping.yml b/.github/workflows/ping.yml new file mode 100644 index 0000000..05fa70b --- /dev/null +++ b/.github/workflows/ping.yml @@ -0,0 +1,11 @@ +name: Ping +on: + schedule: + - cron: '0/10 * * * *' +jobs: + build: + name: ping heroku server + runs-on: ubuntu-latest + steps: + - name: cURL request + run: curl -X GET https://mftp.herokuapp.com/ \ No newline at end of file From c3211f39c63a887f583b11ec8fc8fd3fc9cf87fe Mon Sep 17 00:00:00 2001 From: nilesh05apr Date: Sat, 8 Oct 2022 19:11:39 +0530 Subject: [PATCH 2/2] update: changed curl request --- .github/workflows/ping.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ping.yml b/.github/workflows/ping.yml index 05fa70b..49135c2 100644 --- a/.github/workflows/ping.yml +++ b/.github/workflows/ping.yml @@ -8,4 +8,4 @@ jobs: runs-on: ubuntu-latest steps: - name: cURL request - run: curl -X GET https://mftp.herokuapp.com/ \ No newline at end of file + run: curl mftp.herokuapp.com -o NUL \ No newline at end of file