Skip to content

restart

restart #1904

Workflow file for this run

name: restart
on:
workflow_dispatch:
schedule:
- cron: '0 */6 * * *' # runs every 6 hours at minute 0
permissions:
contents: read
jobs:
restart:
runs-on: ubuntu-latest
environment: production
steps:
- name: checkout
uses: actions/[email protected]
- uses: actions/[email protected]
with:
node-version-file: .node-version
cache: 'npm'
- name: install dependencies
run: npm install
# This command effectively restarts the app
- name: restart railway app
run: npm run deploy
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}