-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (26 loc) · 951 Bytes
/
Copy pathwidget-sync.yaml
File metadata and controls
31 lines (26 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Update Discord Widget
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch:
jobs:
update-widget:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -r requirements.txt
- run: python main.py
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_USERNAME: ${{ secrets.GH_USERNAME }}
DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }}
APPLICATION_ID: ${{ secrets.APPLICATION_ID }}
WIDGET_CONFIG_ID: ${{ secrets.WIDGET_CONFIG_ID }}
HERO_IMAGE: ${{ secrets.HERO_IMAGE }}
COMMITS_TOOLTIP_IMAGE: ${{ secrets.COMMITS_TOOLTIP_IMAGE }}
ORGS_TOOLTIP_IMAGE: ${{ secrets.ORGS_TOOLTIP_IMAGE }}
REPO_TOOLTIP_IMAGE: ${{ secrets.REPO_TOOLTIP_IMAGE }}
FOLLOWERS_TOOLTIP_IMAGE: ${{ secrets.FOLLOWERS_TOOLTIP_IMAGE }}