diff --git a/.gitea/workflows/auto_pr.yaml b/.gitea/workflows/auto_pr.yaml index d14e2ac..a7c020a 100644 --- a/.gitea/workflows/auto_pr.yaml +++ b/.gitea/workflows/auto_pr.yaml @@ -9,7 +9,7 @@ on: - pis-* jobs: - validate_and_release: + validate_and_PR: runs-on: ubuntu-latest permissions: contents: write @@ -27,9 +27,10 @@ jobs: run: node ./scripts/merge-yaml.js - name: Commit Changes + id: commit uses: https://github.com/stefanzweifel/git-auto-commit-action@v5 with: commit_message: Sort & Merge PIS Files commit_user_name: owlbot commit_user_email: owlbot@owlboard.info - commit_author: Robotic Owl \ No newline at end of file + commit_author: Robotic Owl diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..25c8fdb --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +package-lock.json \ No newline at end of file diff --git a/codes.yaml b/pis/codes.yaml similarity index 99% rename from codes.yaml rename to pis/codes.yaml index 6640300..fa0bf33 100644 --- a/codes.yaml +++ b/pis/codes.yaml @@ -1835,12 +1835,6 @@ pis: - code: "5351" stops: [exc,exd,ntc,cdi,yeo,cop,mrd,egg,umb,bnp] toc: "gw" - - code: "5351" - stops: [exc,exd,ntc,cdi,yeo,cop,mrd,egg,umb,bnp] - toc: "gw" - - code: "5352" - stops: [exc,exd,ntc,cdi,yeo,cop,mrd,lap,egg,kgn,pma,umb,cpn,bnp] - toc: "gw" - code: "5352" stops: [exc,exd,ntc,cdi,yeo,cop,mrd,lap,egg,kgn,pma,umb,cpn,bnp] toc: "gw" @@ -1931,9 +1925,6 @@ pis: - code: "5381" stops: [exm,lym,lyc,exn,top,nco,dig,pol,sjp,exc,exd,ext,scs,dww,dwl,tgm,nta,trr,tqy,pgn] toc: "gw" - - code: "5381" - stops: [exm,lym,lyc,exn,top,nco,dig,pol,sjp,exc,exd,ext,scs,dww,dwl,tgm,nta,trr,tqy,pgn] - toc: "gw" - code: "5382" stops: [exm,lym,top,nco,dig,exc,exd,dwl,tgm,nta,trr,tqy,pgn] toc: "gw" @@ -3857,9 +3848,6 @@ pis: - code: "6051" stops: [exc,exd,ntc,cdi,oke] toc: "gw" - - code: "6051" - stops: [exc,exd,ntc,cdi,oke] - toc: "gw" - code: "6052" stops: [exd,cdi,oke] toc: "gw" @@ -4202,9 +4190,6 @@ pis: - code: "6182" stops: [exm,lym,top,nco,dig,exc,exd,ext,mbt,scs,dww,dwl,tgm,nta,trr,tqy,pgn] toc: "gw" - - code: "6182" - stops: [exm,lym,top,nco,dig,exc,exd,ext,mbt,scs,dww,dwl,tgm,nta,trr,tqy,pgn] - toc: "gw" - code: "6183" stops: [pgn,tqy,trr,nta,tgm,dwl,dww,scs,mbt,ext,exd,exc,dig,nco,top,lym,exm] toc: "gw" @@ -4415,9 +4400,6 @@ pis: - code: "6293" stops: [exm,lym,top,nco,dig,exc,exd,ext,mbt,scs,dwl,tgm,nta,trr,tqy,pgn] toc: "gw" - - code: "6293" - stops: [exm,lym,top,nco,dig,exc,exd,ext,mbt,scs,dwl,tgm,nta,trr,tqy,pgn] - toc: "gw" - code: "6294" stops: [exm,lym,lyc,exn,top,nco,dig,pol,sjp,exc,exd,dwl,tgm,nta,trr,tqy,pgn] toc: "gw" @@ -4622,6 +4604,9 @@ pis: - code: "6384" stops: [bri,lwh,srd,asd,fit] toc: "gw" + - code: "6404" + stops: [cdf,nwp,fit,bri,bth,boa,tro,wsb,wmn,sal] + toc: "gw" - code: "6406" stops: [pmh,pms,ftn,csa,frm,sou] toc: "gw" @@ -4637,6 +4622,9 @@ pis: - code: "6413" stops: [exm,lym,lyc,exn,top,dig,pol,exc,exd,ext,mbt,scs,dww,dwl,tgm,nta,trr,tqy,pgn] toc: "gw" + - code: "6417" + stops: [sal,wmn,wsb,tro,boa,brh,bri,fit,stj,nwp,cdf] + toc: "gw" - code: "6418" stops: [cdf,nwp,fit,bri,bth,boa,tro,wsb,wmn] toc: "gw" diff --git a/scripts/merge-yaml.js b/scripts/merge-yaml.js index b16a9a4..827ea62 100644 --- a/scripts/merge-yaml.js +++ b/scripts/merge-yaml.js @@ -52,9 +52,9 @@ function sortAndMergeYAMLFiles() { console.error("Error writing codes.yaml", err) } - // Remove any files created by dgp2 + // Remove any new files files.forEach(file => { - if (file.startsWith('auto-')) { + if (file !== 'codes.yaml') { fs.unlinkSync(directoryPath + file); console.log(`Deleted file: ${file}`); }