Update auto-update.yml
This commit is contained in:
parent
06b204c4e8
commit
93aa4cd31f
|
@ -310,6 +310,12 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: bot/auto-update
|
ref: bot/auto-update
|
||||||
|
- name: Generate Token
|
||||||
|
uses: tibdex/github-app-token@v1
|
||||||
|
id: gh-pages-token
|
||||||
|
with:
|
||||||
|
app_id: ${{ secrets.APP_ID }}
|
||||||
|
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Generate Playlists
|
- name: Generate Playlists
|
||||||
|
@ -319,6 +325,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
folder: .gh-pages
|
folder: .gh-pages
|
||||||
|
token: ${{ steps.gh-pages-token.outputs.token }}
|
||||||
|
git-config-name: iptv-bot
|
||||||
|
git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com
|
||||||
|
commit-message: '[Bot] Deploy to GitHub Pages'
|
||||||
update-readme:
|
update-readme:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: generate
|
needs: generate
|
||||||
|
@ -350,7 +360,7 @@ jobs:
|
||||||
ref: bot/auto-update
|
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: pr-token
|
||||||
with:
|
with:
|
||||||
app_id: ${{ secrets.APP_ID }}
|
app_id: ${{ secrets.APP_ID }}
|
||||||
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||||
|
@ -366,7 +376,7 @@ jobs:
|
||||||
committer: 'iptv-bot[bot] <84861620+iptv-bot[bot]@users.noreply.github.com>'
|
committer: 'iptv-bot[bot] <84861620+iptv-bot[bot]@users.noreply.github.com>'
|
||||||
branch: bot/auto-update
|
branch: bot/auto-update
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
token: ${{ steps.generate-token.outputs.token }}
|
token: ${{ steps.pr-token.outputs.token }}
|
||||||
- name: Enable Pull Request Automerge
|
- name: Enable Pull Request Automerge
|
||||||
if: steps.pr.outputs.pull-request-operation == 'created'
|
if: steps.pr.outputs.pull-request-operation == 'created'
|
||||||
uses: peter-evans/enable-pull-request-automerge@v1
|
uses: peter-evans/enable-pull-request-automerge@v1
|
||||||
|
|
Loading…
Reference in New Issue