mirror of
https://github.com/iptv-org/database.git
synced 2024-11-25 03:51:28 -05:00
Update update.yml
This commit is contained in:
parent
4fe0da03a6
commit
20f40e46c7
1 changed files with 4 additions and 17 deletions
21
.github/workflows/update.yml
vendored
21
.github/workflows/update.yml
vendored
|
@ -16,26 +16,13 @@ jobs:
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: GITHUB_TOKEN=${{ steps.create-app-token.outputs.token }} npm run db:update --silent >> $GITHUB_OUTPUT
|
- run: GITHUB_TOKEN=${{ steps.create-app-token.outputs.token }} npm run db:update --silent >> $GITHUB_OUTPUT
|
||||||
id: issue-process
|
id: issue-process
|
||||||
|
- name: Validate Changes
|
||||||
|
run: npm run db:validate -- data/channels.csv
|
||||||
- name: Commit Changes
|
- name: Commit Changes
|
||||||
run: |
|
run: |
|
||||||
git config user.name ${{ github.actor }}
|
git config user.name ${{ github.actor }}
|
||||||
git config user.email '${{ github.actor }}@users.noreply.github.com'
|
git config user.email '${{ github.actor }}@users.noreply.github.com'
|
||||||
git add data/channels.csv
|
git add data/channels.csv
|
||||||
git commit -m "[Bot] Update channels.csv" --no-verify
|
git commit -m "[Bot] Update channels.csv" -m "Committed by [iptv-bot](https://github.com/apps/iptv-bot) via [update](https://github.com/iptv-org/database/actions/runs/${{ github.run_id }}) workflow." -m "${{ steps.issue-process.outputs.OUTPUT }}" --no-verify
|
||||||
git status
|
git status
|
||||||
- name: Create Pull Request
|
git push
|
||||||
uses: peter-evans/create-pull-request@v5
|
|
||||||
with:
|
|
||||||
token: ${{ steps.create-app-token.outputs.token }}
|
|
||||||
branch: bot/patch
|
|
||||||
branch-suffix: timestamp
|
|
||||||
delete-branch: true
|
|
||||||
add-paths: |
|
|
||||||
data/*.csv
|
|
||||||
title: '[Bot] Update database'
|
|
||||||
body: |
|
|
||||||
This pull request is created by [update][1] workflow.
|
|
||||||
|
|
||||||
${{ steps.issue-process.outputs.OUTPUT }}
|
|
||||||
|
|
||||||
[1]: https://github.com/iptv-org/database/actions/runs/${{ github.run_id }}
|
|
||||||
|
|
Loading…
Reference in a new issue