mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update auto-update.yml
This commit is contained in:
parent
3b37d17a1b
commit
eb5ec6264b
1 changed files with 5 additions and 12 deletions
17
.github/workflows/auto-update.yml
vendored
17
.github/workflows/auto-update.yml
vendored
|
@ -55,7 +55,6 @@ jobs:
|
||||||
path: .gh-pages/guides/${{ matrix.country }}.epg.xml
|
path: .gh-pages/guides/${{ matrix.country }}.epg.xml
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
deploy:
|
deploy:
|
||||||
if: ${{ github.ref == 'refs/heads/master' }}
|
|
||||||
needs: grab
|
needs: grab
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -72,6 +71,7 @@ jobs:
|
||||||
app_id: ${{ secrets.APP_ID }}
|
app_id: ${{ secrets.APP_ID }}
|
||||||
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
uses: JamesIves/github-pages-deploy-action@4.1.1
|
uses: JamesIves/github-pages-deploy-action@4.1.1
|
||||||
with:
|
with:
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
|
@ -101,6 +101,7 @@ jobs:
|
||||||
app_id: ${{ secrets.APP_ID }}
|
app_id: ${{ secrets.APP_ID }}
|
||||||
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
uses: JamesIves/github-pages-deploy-action@4.1.1
|
uses: JamesIves/github-pages-deploy-action@4.1.1
|
||||||
with:
|
with:
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
|
@ -112,7 +113,7 @@ jobs:
|
||||||
commit-message: '[Bot] Deploy to GitHub Pages'
|
commit-message: '[Bot] Deploy to GitHub Pages'
|
||||||
update-readme:
|
update-readme:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: grab
|
needs: deploy
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -131,15 +132,6 @@ jobs:
|
||||||
commit_author: 'iptv-bot[bot] <84861620+iptv-bot[bot]@users.noreply.github.com>'
|
commit_author: 'iptv-bot[bot] <84861620+iptv-bot[bot]@users.noreply.github.com>'
|
||||||
branch: bot/auto-update
|
branch: bot/auto-update
|
||||||
file_pattern: README.md
|
file_pattern: README.md
|
||||||
pull-request:
|
|
||||||
if: ${{ github.ref == 'refs/heads/master' }}
|
|
||||||
needs: update-readme
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
ref: bot/auto-update
|
|
||||||
- name: Generate Token
|
- name: Generate Token
|
||||||
uses: tibdex/github-app-token@v1
|
uses: tibdex/github-app-token@v1
|
||||||
id: generate-token
|
id: generate-token
|
||||||
|
@ -152,13 +144,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
source_branch: 'bot/auto-update'
|
source_branch: 'bot/auto-update'
|
||||||
destination_branch: 'master'
|
destination_branch: 'master'
|
||||||
pr_title: '[Bot] Update playlists'
|
pr_title: '[Bot] Update guides'
|
||||||
pr_body: |
|
pr_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/epg/actions/runs/${{ github.run_id }}
|
[1]: https://github.com/iptv-org/epg/actions/runs/${{ github.run_id }}
|
||||||
github_token: ${{ steps.generate-token.outputs.token }}
|
github_token: ${{ steps.generate-token.outputs.token }}
|
||||||
- name: Merge Pull Request
|
- name: Merge Pull Request
|
||||||
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
uses: juliangruber/merge-pull-request-action@v1
|
uses: juliangruber/merge-pull-request-action@v1
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.PAT }}
|
github-token: ${{ secrets.PAT }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue