Update main3.yml #11
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
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 pull origin main | |
git push https://${{ secrets.GH_TOKEN }}@github.com/Savio629/workflow-testing.git | |
if: success() |