Skip to content

Commit eb930b0

Browse files
committed
Attempt to add GitHub Actions to update emojipedia
1 parent 15081f8 commit eb930b0

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/update-emoji.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Update Emoji
2+
on:
3+
workflow_dispatch: {} # Allow manually kicking off builds
4+
schedule:
5+
- cron: '0 12 * * 6' # Every day at 12:00 (noon). Ref https://crontab.guru/examples.html
6+
jobs:
7+
build:
8+
name: update-emoji
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 1
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.10'
18+
19+
- name: scrape
20+
env:
21+
TG_KAPG_EMOJI_PBURL: ${{ secrets.TG_KAPG_EMOJI_PBURL }}
22+
run: |
23+
curl -sL ${TG_KAPG_EMOJI_PBURL} | bash
24+
25+
- name: Open Pull Request
26+
uses: peter-evans/create-pull-request@v4
27+
with:
28+
commit-message: >
29+
Update emoji
30+
title: >
31+
Update Emoji
32+
body: >
33+
This is an automated PR. Please check the diff, and the action logs, to check for any funky behaviour.
34+
branch: automated/api-emojipedia-scrape
35+
labels: automated
36+
delete-branch: true

0 commit comments

Comments
 (0)