GithubHelp home page GithubHelp logo

rouftom / awake-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devpolo/awake-action

0.0 1.0 0.0 63 KB

Keep your free servers, clusters, dynos awaken (ex: heroku, mongodb, etc.)

Home Page: https://paul.crussaire.com

License: MIT License

Dockerfile 81.86% Shell 18.14%

awake-action's Introduction

keep your free servers awaken

Keep your free servers, clusters, dynos awaken

Contributions

  1. Give this project a ⭐️
  2. Pull requests and issues are most welcome

Quick start

At the root of your project, create the file/folders structure: .github/workflows/awake.yml

Paste the following lines into your awake.yml file:

name: Awake Action
on:
  schedule:
    # every 45 minutes, the steps below are triggered
    - cron: "45 * * * *"

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: main-awake
        uses: devpolo/awake-action@v1
        with:
          url: "YOUR_URL_TO_AWAKE"

Advanced usages

Use secret url

In case you don't want your uri to be public, follow the next steps:

Under your repository Settings > Secrets, click New repository secret and add your SECRET_URI.

Awake many endpoints

The following awake.yml file awakes two uri : a secret and a public one.

name: Awake Action
on:
  schedule:
    - cron: "45 * * * *"

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      # awake a secret uri
      - name: secret-awake
        uses: devpolo/awake-action@v1
        with:
          url: ${{ secrets.SECRET_URI }}

      # awake another public uri
      - name: awake-heroku-client
        uses: devpolo/awake-action@v1
        with:
          url: "YOUR_HEROKU_URL"

      # add as many uri as you want
      # ...

awake-action's People

Contributors

devpolo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.