You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
awake-action
v1-alpha.4
- Give this project a ⭐️
- Pull requests and issues are most welcome
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-alpha.3
with:
url: "YOUR_URL_TO_AWAKE"
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
.
Then paste the following lines into your awake.yml
file:
name: Awake Action
on:
schedule:
- cron: "45 * * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: secret-awake
uses: devpolo/awake-action@v1-alpha.3
with:
url: ${{ secrets.SECRET_URI }}
In some cases, your project may run your API and your client in the same repository.
name: Awake Action
on:
schedule:
- cron: "45 * * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: awake-heroku-api
uses: devpolo/awake-action@v1-alpha.3
with:
url: "YOUR_HEROKU_URL"
- name: awake-heroku-client
uses: devpolo/awake-action@v1-alpha.3
with:
url: "YOUR_HEROKU_URL"
- name: awake-mongodb-cluster
uses: devpolo/awake-action@v1-alpha.3
with:
url: "YOUR_MONGODB_URL"