Skip to content

Commit

Permalink
Update ss.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
berlintay authored Aug 9, 2024
1 parent db12459 commit f6baedc
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/ss.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
name: Capture Screenshot

on:
schedule:
- cron: '0 0 * * *' # Daily at midnight
workflow_dispatch:

jobs:
capture:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3 # Update to the latest version
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3 # Update to the latest version
uses: actions/setup-node@v3
with:
node-version: '20' # Ensure Node.js 20 is used
node-version: '20'

- name: Install Dependencies
run: |
npm install puppeteer
- name: Capture Screenshot
run: |
node capture-screenshot.js
node scripts/capture-screenshot.js
env:
WEBSITE_URL: 'http://www.keays.xyz'

Expand All @@ -36,8 +29,11 @@ jobs:

- name: Set up Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "berlintay"
git config --global user.email "[email protected]"
git config --global user.name "your-name"
git config --global url."https://github.com/".insteadOf [email protected]:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Commit and Push Screenshot
run: |
Expand Down

0 comments on commit f6baedc

Please sign in to comment.