From a413d140da50c0581d00c95a6cc61d7866344bb7 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 23 Jun 2025 14:45:18 +1000 Subject: ci: create emoji update action --- .github/workflows/update-emojis.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/update-emojis.yml (limited to '.github/workflows/update-emojis.yml') diff --git a/.github/workflows/update-emojis.yml b/.github/workflows/update-emojis.yml new file mode 100644 index 0000000..d0fe9ff --- /dev/null +++ b/.github/workflows/update-emojis.yml @@ -0,0 +1,36 @@ +# Updates the emoji/glyph list in src/caelestia/data/emojis.txt + +name: Update emojis + +on: + push: + branches: [$default-branch] + + workflow_dispatch: + +jobs: + update: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup python + uses: actions/setup-python@v5 + with: + python-version: "3.x" + + - name: Fetch emojis + run: ./run.sh emoji -f + + - name: Check for changes + id: check + run: echo ::set-output name=modified::$(test -n "$(git status --porcelain)" && echo 'true' || echo 'false') + + - name: Commit and push changes + if: steps.check.outputs.modified == 'true' + uses: EndBug/add-and-commit@v9 + with: + add: src/caelestia/data/emojis.txt + default_author: github_actions + message: "[CI] emojis: update data" -- cgit v1.2.3-freya