Skip to content

Get Subscriber Count #11971

Get Subscriber Count

Get Subscriber Count #11971

Workflow file for this run

name: Get Subscriber Count
on:
push:
branches:
- main
schedule:
- cron: '*/30 * * * *'
workflow_dispatch:
jobs:
get_subscriber_count:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install Dependencies
run: |
npm install axios
npm install fs
- name: Run Script
run: node get_data.js ${{ secrets.APIKEY }}
- name: Commit and Push Changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "📈Update subscriber count"
git push