Skip to content

Crawl

Crawl #10

Workflow file for this run

name: Crawl
on:
workflow_dispatch:
inputs:
session_id:
default: NONE
description: Php Session ID use to bypass login
required: true
type: string
jobs:
crawl:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Create .env file
run: |
echo "NODE_ENV=${{ secrets.NODE_ENV }}" > .env
echo "OPEN_DB_KEY=${{ secrets.OPEN_DB_KEY }}" >> .env
echo "OPEN_DB_IV=${{ secrets.OPEN_DB_IV }}" >> .env
echo "PHPSESSID=${{ inputs.PHPSESSID }}" >> .env
- name: Install Packages
run: yarn
- name: Burn 🔥
run: yarn dev
- name: Push to Github
run: |
git add ./db
git config --global user.name "Zain-ul-din"
git config --global user.email "[email protected]"
git commit -m "🤖 Github Action: updated encrypted DB"
git push origin master
# Appendix:
# https://stackoverflow.com/questions/72851548/permission-denied-to-github-actionsbot
# Trigger Action using API call
# https://github.com/jbranchaud/til/blob/master/github-actions/trigger-a-workflow-via-an-api-call.md