Skip to content

Update Badges

Update Badges #6319

Workflow file for this run

name: Update Badges
on:
workflow_dispatch:
schedule:
- cron: "0 */1 * * *"
jobs:
do-stuff:
name: Do Stuff
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@master
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
version: 9
run_install: false
- name: Install dependencies
run: pnpm install
- name: Clear Badges
run: rm -rf users && mkdir users
- name: Setup env
run: |
echo "GITHUB_TOKEN = ${{ secrets.ETOKEN }}" >> .env
echo "BADGE_VAULT_KEY = ${{ secrets.BADGE_VAULT_KEY }}" >> .env
- name: Update Aero Badges
run: node scripts/getAeroBadges.mjs
- name: Update Aliucord Badges
run: node scripts/getAliucordBadges.mjs
- name: Update BetterDiscord Badges
run: node scripts/getBetterDiscordBadges.mjs
- name: Update BadgeVault Badges
run: node scripts/getBadgeVaultBadges.mjs
- name: Update Enmity Badges
run: node scripts/getEnmityBadges.mjs
- name: Update Velocity Badges
run: node scripts/getVelocityBadges.mjs
- name: Update Vencord Badges
run: node scripts/getVencordBadges.mjs
- name: Update Equicord Badges
run: node scripts/getEquicordBadges.mjs
- name: Push Changes
run: |
git config --local user.email "78185467+thororen1234@users.noreply.github.com"
git config --local user.name "thororen1234"
git add .
git commit -m "Updated Badges" || exit 0
git push