Skip to content

☀️ A GitHub action to keep a free Heroku dyno awake

License

Notifications You must be signed in to change notification settings

mikeesto/heroku-awake

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Awake

A free Heroku web dyno will go to sleep if it does not receive any web traffic within a 30 minute period. When a sleeping dyno receives web traffic it will become active again, but there is a short delay as the application needs to be reloaded.

This GitHub action keeps a Heroku dyno awake by making a HTTP request to it every 30 minutes.

Heroku only provides a limited number of free dyno hours per month. The main benefit of a sleeping dyno is that it does not consume free dyno hours. Please ensure you have sufficient free dyno hours to support a 24/7 dyno before using this action.

Usage

In order to use this action in your workflow, add this file to .github/workflows/YOURACTION.yml

name: Heroku Awake

on:
  schedule:
    - cron: "*/30 * * * *"

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: mikeesto/heroku-awake@1.0.0
        with:
          URL: "" # ADD YOUR HEROKU URL HERE e.g. https://cats.herokuapp.com

License

MIT.

About

☀️ A GitHub action to keep a free Heroku dyno awake

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published