-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
example.yml
24 lines (23 loc) · 1.1 KB
/
example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: ⚡️ Update Status. ⚡️
on:
workflow_dispatch:
schedule:
- cron: "0 */3 * * *"
jobs:
update-readme-with-projects:
name: 🏃♂️ run the bot 🏃♂️
runs-on: ubuntu-latest
steps:
- uses: jainamoswal/botstatus@main
env: # all the six environment variables are must, else the action will raise errors.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # automatically fetched. none of business.
BOTS: ${{ secrets.BOTS }} # link of raw file of bots in JSON format. (eg :~ https://gist.githubusercontent.com/jainamoswal/cc331a3d2a4169ab76885c5a1e076d68/raw#file-bots-json)
SESSION: ${{ secrets.SESSION }} # telethon session string
APP_ID: ${{ secrets.APP_ID }} # APP ID from my.telegram.org
API_HASH: ${{ secrets.API_HASH }} # API ID from my.telegram.org
IDS: ${{ secrets.IDS }} # Message IDs to edit.
id: bot-status
# now you can use the output of status returned as JSON anywhere.
# example :~
# - name: Echo the JSON data.
# run: echo ${{ steps.bot-status.outputs.STATUS }}