Ping staging apps #39352
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ping staging apps | |
# **What it does**: This keeps our staging applications from automatically spinning down. | |
# **Why we have it**: Staging applications can hiberate without use. | |
# **Who does it impact**: Anyone with a pull request in docs-internal. | |
on: | |
schedule: | |
- cron: '10,30,50 * * * *' # every twenty minutes | |
permissions: | |
contents: read | |
jobs: | |
ping_staging_apps: | |
name: Ping | |
if: github.repository == 'github/docs-internal' | |
runs-on: ubuntu-latest | |
env: | |
HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }} | |
steps: | |
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 | |
- name: Setup node | |
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 | |
with: | |
node-version: 16.13.x | |
cache: npm | |
- name: npm ci | |
run: npm ci | |
- name: Run script | |
run: script/ping-staging-apps.js |