-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (56 loc) · 2.04 KB
/
unicode-emojis.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Unicode Emoji Update
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
push:
branches:
- main
paths:
- 'src/scripts/generateEmojiParser.ts'
env:
NODE_ENV: production
jobs:
unicode-emojis:
name: Update unicode emojis
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install Volta
uses: volta-cli/action@5c175f92dea6f48441c436471e6479dbc192e194 # v4
- name: Restore dependencies
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
id: restore-dependencies
with:
path: node_modules/
key: ${{ runner.os }}-dependencies-${{ github.sha }}
- name: Install dependencies
if: steps.restore-dependencies.outputs.cache-hit != 'true'
uses: ./.github/actions/yarn-install
- name: Restore build output
id: restore-build-output
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
with:
path: dist/
key: ${{ runner.os }}-build-output-${{ github.sha }}
- name: Build
if: steps.restore-build-output.outputs.cache-hit != 'true'
run: yarn build
- name: Run script
run: node dist/scripts/generateEmojiParser.js
- name: Generate token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Create pull request
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: 'feat: update unicode emojis'
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
branch: update-unicode-emojis
title: 'feat: update unicode emojis'
labels: automerge