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