-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add import:rc:ci command to package.json to import songs from RC, rep…
…rocess filenames and content, and format the code.
- Loading branch information
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,9 +25,37 @@ jobs: | |
CI: true | ||
FORCE_COLOR: 2 | ||
|
||
AutoUpdateMeta: | ||
AutoImportFromRC: | ||
needs: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
|
||
- name: Install dependencies | ||
run: npm i | ||
|
||
- name: Import from RC (if not exists already) | ||
run: | | ||
npm run import:rc:ci | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add -A | ||
git diff --quiet && git diff --staged --quiet || git commit -am "[Bot] I have imported the 'resurse crestine' songs based on the 'rc_authors_to_process.txt' and 'rc_ids_to_process.txt'." | ||
env: | ||
CI: true | ||
FORCE_COLOR: 2 | ||
|
||
AutoUpdateMeta: | ||
needs: AutoImportFromRC | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters