From ac0d51310ec96387c29d3d6bcbabbc8822dee4dc Mon Sep 17 00:00:00 2001 From: Abhishek Sisodiya <31343468+sisodiya2421@users.noreply.github.com> Date: Thu, 10 Sep 2020 14:15:20 +0530 Subject: [PATCH 1/4] Update entrypoint.sh --- entrypoint.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 9bf9f46..81eebf9 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,4 +3,13 @@ # will throw error if variable is unset set -eu # curl command to ping the url specified in github secrets -curl -i --head $URL \ No newline at end of file +curl -w @- -o /dev/null -s "$URL" <<'EOF' + time_namelookup: %{time_namelookup}\n + time_connect: %{time_connect}\n + time_appconnect: %{time_appconnect}\n + time_pretransfer: %{time_pretransfer}\n + time_redirect: %{time_redirect}\n + time_starttransfer: %{time_starttransfer}\n + ----------\n + time_total: %{time_total}\n +EOF From 5e4186e012a5930a681a5ca3e00ece8b8d357d8e Mon Sep 17 00:00:00 2001 From: Abhishek Sisodiya <31343468+sisodiya2421@users.noreply.github.com> Date: Thu, 10 Sep 2020 15:14:26 +0530 Subject: [PATCH 2/4] Update entrypoint.sh --- entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 81eebf9..13e859b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,6 +2,8 @@ # will throw error if variable is unset set -eu + +echo "Sending request to URL: $URL " # curl command to ping the url specified in github secrets curl -w @- -o /dev/null -s "$URL" <<'EOF' time_namelookup: %{time_namelookup}\n From be33e5f3eb58b3d74261216f8499d5d20cb3c1b2 Mon Sep 17 00:00:00 2001 From: Abhishek Sisodiya <31343468+sisodiya2421@users.noreply.github.com> Date: Thu, 10 Sep 2020 15:20:30 +0530 Subject: [PATCH 3/4] Update entrypoint.sh --- entrypoint.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 13e859b..7c5e118 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,7 +3,6 @@ # will throw error if variable is unset set -eu -echo "Sending request to URL: $URL " # curl command to ping the url specified in github secrets curl -w @- -o /dev/null -s "$URL" <<'EOF' time_namelookup: %{time_namelookup}\n From 7b3716fcd812be91bcf0d785a2a5162fdc8e5a78 Mon Sep 17 00:00:00 2001 From: Abhishek Sisodiya <31343468+sisodiya2421@users.noreply.github.com> Date: Thu, 10 Sep 2020 15:35:20 +0530 Subject: [PATCH 4/4] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5fff819..ce08803 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Scheduled Ping -This action pings your specified url every 25 minutes(changeable) +This action pings your specified URL every 30 minutes(**changeable**) and generates timing details using [cURL](https://curl.haxx.se/). ## Secrets @@ -17,12 +17,12 @@ to get details about adding secrets to your repository ```yml name: Scheduled Ping -# This workflow is triggered at a scheduled interval of every 25 minutes +# This workflow is triggered at a scheduled interval of every 30 minutes on: schedule: # * is a special character in YAML so you have to quote this string. - # /25 denotes that it will run once every 25 minutes - - cron: '*/25 * * * *' + # /30 denotes that it will run once every 30 minutes + - cron: '*/30 * * * *' jobs: pinger_job: @@ -35,8 +35,8 @@ jobs: uses: sisodiya2421/pinger@master ``` -**NOTE** You can change the time interval according to your own need. *Default is 25 minutes*. All you -need to do is just replace `'*/25 * * * *'` in line `- cron: '*/25 * * * *'` with your suitable timing. +**NOTE** You can change the time interval according to your own need. *Default is 30 minutes*. All you +need to do is just replace `'*/30 * * * *'` in line `- cron: '*/30 * * * *'` with your suitable timing. Remember the shortest interval you can run scheduled workflows is once every 5 minutes. ### Some patterns for help