name: update on: workflow_dispatch: schedule: - cron: '0 0 * * *' jobs: main: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: tibdex/github-app-token@v1 id: create-app-token with: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} - run: npm install - run: GITHUB_TOKEN=${{ steps.create-app-token.outputs.token }} npm run db:update