Skip to content

Login

Login #12

Workflow file for this run

name: Login
on:
workflow_dispatch:
schedule:
- cron: '7 12 */7 * *'
env:
ACCOUNTS_JSON: ${{ secrets.ACCOUNTS_JSON }}
jobs:
login:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install dependencies
run: npm install puppeteer
- name: Create accounts.json
run: echo "$ACCOUNTS_JSON" > accounts.json
- name: Login to website
run: |
set -e
xvfb-run --server-args="-screen 0 1280x1024x24" node login.js