iptv-database/.github/workflows/update.yml
Aleksandr Statciuk 8c8f10f7b7 Update update.yml
2023-05-24 23:21:57 +03:00

17 lines
469 B
YAML

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 >> $GITHUB_OUTPUT