Update auto-update.yml

This commit is contained in:
Aleksandr Statciuk 2022-02-15 12:17:47 +03:00
parent e92e245cd8
commit 14664c77b7
1 changed files with 16 additions and 12 deletions

View File

@ -48,15 +48,16 @@ jobs:
cluster_id: [1] cluster_id: [1]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: database
path: scripts
- uses: FedericoCarboni/setup-ffmpeg@v1 - uses: FedericoCarboni/setup-ffmpeg@v1
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
if: ${{ !env.ACT }} if: ${{ !env.ACT }}
with: with:
node-version: '14' node-version: '14'
- uses: actions/download-artifact@v2
with:
name: database
path: scripts/database
- run: ls scripts/database
- run: npm install - run: npm install
- run: npm run cluster:load -- --cluster-id=${{ matrix.cluster_id }} - run: npm run cluster:load -- --cluster-id=${{ matrix.cluster_id }}
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
@ -86,15 +87,15 @@ jobs:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
name: data name: data
path: scripts path: scripts/data
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
name: database name: database
path: scripts path: scripts/database
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
name: logs name: logs
path: scripts path: scripts/logs
- run: npm install - run: npm install
- run: npm run db:update - run: npm run db:update
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
@ -102,8 +103,6 @@ jobs:
name: database name: database
path: scripts/database path: scripts/database
- run: npm run playlist:update - run: npm run playlist:update
- run: git add streams/*
- run: git commit -m "[Bot] Update streams"
- run: npm run playlist:generate - run: npm run playlist:generate
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
@ -131,9 +130,14 @@ jobs:
commit-message: '[Bot] Deploy to iptv-org/api' commit-message: '[Bot] Deploy to iptv-org/api'
clean: false clean: false
- run: npm run readme:update - run: npm run readme:update
- run: git add README.md - name: Commit Changes
- run: git commit -m "[Bot] Update README.md" if: ${{ !env.ACT }}
- run: git push -u origin ${{ steps.create-branch-name.outputs.branch_name }} run: |
git add streams/*
git commit -m "[Bot] Update streams"
git add README.md
git commit -m "[Bot] Update README.md"
git push -u origin ${{ steps.create-branch-name.outputs.branch_name }}
- uses: repo-sync/pull-request@v2 - uses: repo-sync/pull-request@v2
if: ${{ !env.ACT }} if: ${{ !env.ACT }}
id: pull-request id: pull-request