Welcome to the Superteam Games repository. This repository contains scripts to fetch and handle data from various platforms like Discord, Twitter, and YouTube.
- .github/workflows/main.yml: Contains the GitHub Actions workflow configuration.
- discordMembers.ts: Script related to Discord members.
- twitterFollowers.ts: Script related to Twitter followers.
- ytSubs.ts: Script related to YouTube subscribers.
- Other configuration and setup files:
.gitignore,package-lock.json,package.json, andtsconfig.json.
- Clone the repository:
git clone https://github.com/akshatcoder-hash/superteam-games.git- Navigate to the project directory:
cd superteam-games- Install the required dependencies:
npm install- Create your script, for example,
myNewScript.ts. - Open
.github/workflows/main.yml. - Under the
jobssection, add a new job or modify an existing one to run your script:
jobs:
my_new_job:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run my new script
run: ts-node myNewScript.ts- Go to your repository on GitHub.
- Click on the
Settingstab. - In the left sidebar, click on
Secrets. - Here, you can add new secrets or update existing ones. These secrets can be used as environment variables in your GitHub Actions workflow.
- In your
.github/workflows/main.yml, you can reference these secrets using the following syntax:
env:
MY_SECRET: ${{ secrets.MY_SECRET_NAME }}