Skip to content

Commit

Permalink
Update CI workflow to include additional files and directories in the…
Browse files Browse the repository at this point in the history
… checkout process, and import data from RC if it doesn't already exist.
  • Loading branch information
ioanlucut committed Oct 2, 2023
1 parent 33752c6 commit f69c9d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'CI (Continuous Integration) & Auto Update Songs Meta'

on: [pull_request]
on: [ pull_request ]

jobs:
Build:
Expand Down Expand Up @@ -33,6 +33,18 @@ jobs:
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
sparse-checkout: |
temp-runners/rc_ids_to_process.txt
temp-runners/rc_authors_to_process.txt
temp-runners/manual_picks_rest.txt
temp-runners/manual_picks.txt
- name: Checkout bes-lyrics-parser repo
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT_BES_PROJECTS }}
repository: ioanlucut/bes-lyrics-parser
path: ../bes-lyrics-parser

- name: Use Node.js 20.x
uses: actions/setup-node@v3
Expand Down
4 changes: 2 additions & 2 deletions temp-runners/importSongsFromRcByAuthors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));

dotenv.config();

const RC_BASE = '/Users/ilucut/WORK/BES/bes-lyrics-parser';
const RC_BASE = '../bes-lyrics-parser';
const RC_DIR = `${RC_BASE}/out/resurse_crestine`;
const CANDIDATES_DIR = `/Users/ilucut/WORK/BES/bes-lyrics/candidates`;
const CANDIDATES_DIR = `./candidates`;

const rcAuthorPathsToProcess = fsExtra
.readFileSync(`${__dirname}/rc_authors_to_process.txt`)
Expand Down

0 comments on commit f69c9d1

Please sign in to comment.