Run Bot #31
This file contains hidden or 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: Run Bot | |
| on: | |
| schedule: | |
| - cron: '13 * * * *' # Every hour | |
| workflow_dispatch: # Allows triggering the workflow manually from the GitHub UI | |
| push: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup nodejs | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'npm' | |
| node-version: 23.x | |
| - run: npm install | |
| - run: npm run build | |
| - name: Setup GitHub App Private Key | |
| run: | | |
| echo "${GH_APP_PRIVATE_KEY}" > private-key.pem | |
| env: | |
| GH_APP_PRIVATE_KEY: ${{ secrets.GH_APP_PRIVATE_KEY }} | |
| - name: Run bot | |
| run: | | |
| node dist/src/main.js --gh-app-id 1793875 --gh-installation-id 81302562 --gh-app-pem-file private-key.pem jupyterhub 4 |