mirror of
https://github.com/tiennm99/old-free-domains.git
synced 2026-10-18 16:14:18 +00:00
update raw api
This commit is contained in:
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"
|
||||
@@ -0,0 +1 @@
|
||||
raw.freesubdomains.org
|
||||
Whitespace-only changes.
@@ -1 +0,0 @@
|
||||
|
||||
@@ -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;
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user