mirror of
https://github.com/ivuorinen/emoji.git
synced 2026-02-06 00:45:19 +00:00
feat: new py based generator for md and html
This commit is contained in:
30
.github/workflows/generate-listings.yml
vendored
Normal file
30
.github/workflows/generate-listings.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Generate Listings
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'emoji/**'
|
||||
- 'create_listing.py'
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
generate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Generate listings
|
||||
run: python3 create_listing.py
|
||||
|
||||
- name: Commit changes
|
||||
run: |
|
||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
git add README.md index.html
|
||||
git diff --staged --quiet || git commit -m "Update listings"
|
||||
git push
|
||||
Reference in New Issue
Block a user