Update publish.yml

This commit is contained in:
freearhey 2020-12-18 09:20:16 +03:00
parent 669679624b
commit 46275de951
1 changed files with 32 additions and 32 deletions

View File

@ -2,48 +2,48 @@ name: Publish playlists
on: on:
schedule: schedule:
- cron: '0 1 * * *' - cron: '0 1 * * *'
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Install Dependencies - name: Install Dependencies
run: npm install run: npm install
- name: Generate Playlists - name: Generate Playlists
run: npm run generate run: npm run generate
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@master uses: JamesIves/github-pages-deploy-action@master
env: env:
ACCESS_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }} ACCESS_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}
BASE_BRANCH: master BASE_BRANCH: master
BRANCH: gh-pages BRANCH: gh-pages
FOLDER: .gh-pages FOLDER: .gh-pages
update-readme: update-readme:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: deploy needs: deploy
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@master uses: actions/checkout@v2
- name: Install Dependencies - name: Install Dependencies
run: npm install run: npm install
- name: Update README.md - name: Update README.md
run: npm run update-readme run: npm run update-readme
- name: Create Pull Request - name: Create Pull Request
uses: peter-evans/create-pull-request@v1.5.1 uses: peter-evans/create-pull-request@v3
env: env:
GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }} GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}
COMMIT_MESSAGE: 'Update README.md' COMMIT_MESSAGE: 'Update README.md'
PULL_REQUEST_BRANCH: bot-patch PULL_REQUEST_BRANCH: bot-patch
PULL_REQUEST_TITLE: '[Bot] Update README.md' PULL_REQUEST_TITLE: '[Bot] Update README.md'
PULL_REQUEST_LABELS: automerge PULL_REQUEST_LABELS: automerge
PULL_REQUEST_BODY: > PULL_REQUEST_BODY: >
This pull request is auto-generated by GitHub action. This pull request is auto-generated by GitHub action.