restart #1852
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: 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 }} |