Skip to content

Serv00/CT8 Login Tasks #20

Serv00/CT8 Login Tasks

Serv00/CT8 Login Tasks #20

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