Visit GitHub Page #8
This file contains hidden or 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
| name: Visit Page Daily | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' # Runs once daily at midnight UTC | |
| workflow_dispatch: # Allows manual triggering of the workflow | |
| jobs: | |
| visit_page_job: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v2 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: '16' # Ensure Node.js version is compatible | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run the visit script | |
| run: node scripts/visit.js # Replace with the actual path if necessary |