2021-01-02 08:41:23 +01:00
|
|
|
name: format
|
2019-11-02 17:12:03 +01:00
|
|
|
on:
|
2021-01-16 15:15:54 +01:00
|
|
|
workflow_dispatch:
|
2019-11-03 11:08:05 +01:00
|
|
|
schedule:
|
2021-01-02 08:41:23 +01:00
|
|
|
- cron: '0 0 * * *'
|
2019-11-02 17:12:03 +01:00
|
|
|
jobs:
|
2019-11-03 09:30:43 +01:00
|
|
|
format:
|
2019-11-02 17:12:03 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-01-02 08:41:23 +01:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm install
|
|
|
|
|
|
|
|
- name: Format Playlists
|
2021-01-16 15:15:30 +01:00
|
|
|
run: node scripts/format.js
|
2021-01-02 08:41:23 +01:00
|
|
|
|
|
|
|
- name: Create Pull Request
|
|
|
|
uses: peter-evans/create-pull-request@v3
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.REPO_SCOPED_TOKEN }}
|
|
|
|
commit-message: 'Format playlists'
|
|
|
|
branch: bot-patch
|
|
|
|
title: '[Bot] Format playlists'
|
|
|
|
labels: automerge
|
|
|
|
body: |
|
2019-11-02 17:12:03 +01:00
|
|
|
This pull request is auto-generated by GitHub action.
|