-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (37 loc) · 1.09 KB
/
cron.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Cron
on:
workflow_dispatch:
push:
branches:
- master
schedule:
# run every day at midnight UTC
- cron: '0 0 * * *'
jobs:
build:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
with:
# fetch everything
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install dependencies
run: yarn install --frozen-lockfile
- run: yarn ci
- run: git status
- name: Commit changed files
run: |
if [[ "$(git status --porcelain)" != "" ]]; then
git config user.email "65266937+emojibot[bot]@users.noreply.github.com"
git config user.name "emojibot[bot]"
git remote set-url origin https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git checkout -b temp
git add .
git commit -m "Update emoji data"
git push origin HEAD:master
fi
- name: Check emoji keys for potential new formats
run: yarn check-emoji-keys latest