iptv-database/.github/workflows/update.yml

18 lines
451 B
YAML
Raw Normal View History

2023-04-08 20:39:08 -04:00
name: update
on:
workflow_dispatch:
2023-04-11 17:50:43 -04:00
schedule:
- cron: '0 0 * * *'
2023-04-08 20:39:08 -04:00
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
2023-05-24 16:23:17 -04:00
- run: GITHUB_TOKEN=${{ steps.create-app-token.outputs.token }} npm run db:update