update raw api

This commit is contained in:
William Harrison authored and GitHub committed 2023-02-14 19:18:27 +08:00
1 parent 475569187c
commit dfd892c220
5 files changed
+5 -5

No files matched your search

@@ -20,14 +20,14 @@ jobs:
- name: Run Script
run: |
node scripts/raw.js
node scripts/raw-api.js
- name: Push Data
uses: cpina/github-action-push-to-another-repository@main
with:
source-directory: "raw"
source-directory: "raw-api"
destination-github-username: free-domains
destination-repository-name: raw
destination-repository-name: raw-api
user-email: actions@github.com
user-name: github-actions
commit-message: "Update Data via free-domains/register"
+1
View File
@@ -0,0 +1 @@
raw.freesubdomains.org
View File
Whitespace-only changes.
-1
View File
@@ -1 +0,0 @@
+1 -1
View File
@@ -36,7 +36,7 @@ fs.readdir(directoryPath, function (err, files) {
combinedArray = combinedArray.concat(dataArray);
if(combinedArray.length === files.length) {
fs.writeFile("raw/index.json", JSON.stringify(combinedArray), (err) => {
fs.writeFile("raw-api/index.json", JSON.stringify(combinedArray), (err) => {
if(err) throw err;
})
}