Skip to content

Commit

Permalink
init: initial commit && just thinking to make good searching table fo…
Browse files Browse the repository at this point in the history
…r park VDNKH
  • Loading branch information
adhikara13 committed Dec 16, 2023
1 parent 4d4dfd2 commit d053a31
Show file tree
Hide file tree
Showing 6 changed files with 28,512 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflow/main.yml
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);
})
11 changes: 11 additions & 0 deletions Dockerfile
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# VDNH
# datatable
Loading

0 comments on commit d053a31

Please sign in to comment.