-
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.
init: initial commit && just thinking to make good searching table fo…
…r park VDNKH
- Loading branch information
1 parent
4d4dfd2
commit d053a31
Showing
6 changed files
with
28,512 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Fetch and Backup Data | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * 0" # Every Sunday at midnight UTC | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
fetch-and-backup: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Fetch and backup data | ||
run: | | ||
fetch('https://vdnh.ru/local/templates/v3_new_header/js/places-s1.js') | ||
.then(response => response.text()) | ||
.then(data => { | ||
const jsonData = data.replace(/^var places = |;$/g, ''); | ||
const backupData = JSON.stringify(jsonData, null, 2); | ||
require('fs').writeFileSync('backup.json', backupData); | ||
}) | ||
.catch(error => { | ||
console.error('Error fetching data:', error); | ||
process.exit(1); | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Use the official Apache image | ||
FROM httpd:alpine | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /usr/local/apache2/htdocs | ||
|
||
# Copy the application files to the working directory | ||
COPY . . | ||
|
||
# Expose the port the app runs on | ||
EXPOSE 80 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
# VDNH | ||
# datatable |
Oops, something went wrong.