Skip to content

Commit

Permalink
update: polish the contents
Browse files Browse the repository at this point in the history
  • Loading branch information
Koooooo-7 committed May 23, 2024
1 parent d08e3b0 commit 7b4f7a3
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Rotate emojiData
name: Update Emoji

on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:

concurrency:
group: rotate-emoji-group
group: update-emoji-group

jobs:
sync-emojis-from-github:
Expand All @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4

- name: Setup Node.js v20
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
Expand All @@ -36,14 +36,14 @@ jobs:
current_date=$(date +'%Y-%m-%d')
branch_name="update-emoji-data-$current_date"
pr_title="update(emoji): sync emojiData and find update emojis in [$current_date]"
pr_title="update(emoji): Sync emoji data with GitHub emoji API [$current_date]"
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
git checkout -b $branch_name
git add src/core/render/emoji-data.js
git add docs/emoji.md
git commit -m "update(emoji): sync emojiData and find update emojis in [$current_date]"
git commit -m "update(emoji): Sync emoji data with GitHub emoji API [$current_date]"
unique_branch_name=$branch_name-$(git log -1 --pretty=%h)
git checkout -b $unique_branch_name
git push origin $unique_branch_name
Expand Down

0 comments on commit 7b4f7a3

Please sign in to comment.