Skip to content

Commit

Permalink
Create main4.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Savio629 authored May 8, 2024
1 parent b9aaf47 commit 30f5785
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/main4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Puppeteer Workflow 5

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies
run: npm install

- name: Run Puppeteer script
run: node index1.js 25 30

- name: Commit and push updated CSV (if applicable)
run: |
git config --local user.email "diassavio629@gmail.com"
git config --local user.name "Savio629"
git add data
git commit -m "Update data folder"
git push https://${{ secrets.GH_TOKEN }}@github.com/Savio629/workflow-testing.git
if: success()

0 comments on commit 30f5785

Please sign in to comment.