mirror of
https://github.com/iptv-org/database.git
synced 2024-11-09 22:16:38 -05:00
17 lines
469 B
YAML
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
|