Update auto-update.yml

This commit is contained in:
Aleksandr Statciuk 2021-08-03 08:23:04 +03:00
parent 0c62d8348a
commit 3beb624796

View File

@ -46,10 +46,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
ref: bot/auto-update ref: bot/auto-update
- name: Fetch Origin
run: git fetch origin
- name: Update from master
run: git merge --allow-unrelated-histories origin/master
- name: Generate Token - name: Generate Token
uses: tibdex/github-app-token@v1 uses: tibdex/github-app-token@v1
id: generate-token id: generate-token
@ -58,15 +54,13 @@ jobs:
private_key: ${{ secrets.APP_PRIVATE_KEY }} private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Create Pull Request - name: Create Pull Request
id: pr id: pr
uses: peter-evans/create-pull-request@v3 uses: tretuna/sync-branches@1.2.0
with: with:
title: '[Bot] Update playlists' FROM_BRANCH: 'bot/auto-update'
body: | TO_BRANCH: 'master'
PULL_REQUEST_TITLE: '[Bot] Update playlists'
PULL_REQUEST_BODY: |
This pull request is created by [auto-update][1] workflow. This pull request is created by [auto-update][1] workflow.
[1]: https://github.com/iptv-org/iptv/actions/runs/${{ github.run_id }} [1]: https://github.com/iptv-org/iptv/actions/runs/${{ github.run_id }}
author: 'iptv-bot[bot] <84861620+iptv-bot[bot]@users.noreply.github.com>' GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
branch: 'bot/auto-update'
delete-branch: false
base: master
token: ${{ steps.generate-token.outputs.token }}