Skip to content

Update emojis.json

Update emojis.json #12

Workflow file for this run

name: "Auto-Generate Emoji Mappings"
on:
push:
paths:
- 'DisCatSharp.Tools/emojis.json'
jobs:
emoji-autogen:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ secrets.NYUW_TOKEN_GH }}
- name: Setup .NET
uses: actions/setup-dotnet@v5.0.0
with:
dotnet-version: 10.0.100-rc.1.25451.107
- name: Run emoji mapping generator
shell: pwsh
run: |
cd DisCatSharp.Tools
./gen-emoji-mappings.ps1
- name: Commit and push if changed
env:
GITHUB_TOKEN: ${{ secrets.NYUW_TOKEN_GH }}
run: |
git config user.name "NyuwBot"
git config user.email "nyuw@aitsys.dev"
git add DisCatSharp/Entities/Emoji/DiscordEmoji.Mapping.cs DisCatSharp/Entities/Emoji/DiscordUnicodeEmoji.cs
if git diff --cached --quiet; then
echo "No changes to commit."
exit 0
fi
git commit -m "[ci skip] chore(emojis): auto-update emoji mappings from emojis.json"
git push -f