-
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.
- Loading branch information
Evgeny Svirsky
committed
Nov 11, 2023
0 parents
commit b1b0cc2
Showing
12 changed files
with
599 additions
and
0 deletions.
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,3 @@ | ||
VFS_GLOBAL_URL=https://lift-api.vfsglobal.com/appointment/CheckIsSlotAvailable | ||
## TO DO: Move to secrets | ||
AUTHENTICATED_TOKEN=AUTHENTICATED_TOKEN |
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,35 @@ | ||
name: Execute the script to check VFS global dates | ||
on: | ||
schedule: | ||
- cron: "0 * * * *" # Every hour | ||
workflow_dispatch: | ||
|
||
jobs: | ||
execute_script: | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Get Node.js version | ||
id: nodejs-version | ||
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ steps.nodejs-version.outputs.NODE_VERSION }} | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Prepare/restore cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Install packages | ||
run: npm ci | ||
env: | ||
NPM_TOKEN: ${{secrets.NPM_TOKEN_READ}} | ||
|
||
- name: Execute | ||
run: | | ||
npm start |
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,40 @@ | ||
# compiled output | ||
/dist | ||
/node_modules | ||
|
||
# docker volumes | ||
.data/* | ||
|
||
# tmp files | ||
.tmp/ | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# OS | ||
.DS_Store | ||
|
||
# Tests | ||
/coverage | ||
/.nyc_output | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json |
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 @@ | ||
v20 |
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,14 @@ | ||
# VFS Global checker for visa dates availability | ||
|
||
### How to use: | ||
1. Install packages with command: | ||
```shell | ||
nvm exec npm i | ||
``` | ||
|
||
2. Update `.env` file | ||
|
||
3. Execute the command: | ||
```shell | ||
nvm exec npm start | ||
``` |
Oops, something went wrong.