Skip to content

Commit e35c7cc

Browse files
authored
Create visit-page.yml
1 parent b210e80 commit e35c7cc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/visit-page.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Visit Page Daily
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # Runs once daily at midnight UTC
6+
workflow_dispatch: # Allows manual triggering of the workflow
7+
8+
jobs:
9+
visit_page_job:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out repository
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: '16' # Ensure Node.js version is compatible
20+
21+
- name: Install dependencies
22+
run: npm install axios
23+
24+
- name: Run the visit script
25+
run: node visitPage.js # Replace with the actual path if necessary

0 commit comments

Comments
 (0)