diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-23 14:45:18 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-23 14:45:18 +1000 |
| commit | a413d140da50c0581d00c95a6cc61d7866344bb7 (patch) | |
| tree | 7c5f46ac6e53d3aa3834e681c79fb462e46fd06b /.github/workflows/update-emojis.yml | |
| parent | emoji: add fetch option (diff) | |
| download | caelestia-cli-a413d140da50c0581d00c95a6cc61d7866344bb7.tar.gz caelestia-cli-a413d140da50c0581d00c95a6cc61d7866344bb7.tar.bz2 caelestia-cli-a413d140da50c0581d00c95a6cc61d7866344bb7.zip | |
ci: create emoji update action
Diffstat (limited to '.github/workflows/update-emojis.yml')
| -rw-r--r-- | .github/workflows/update-emojis.yml | 36 |
1 files changed, 36 insertions, 0 deletions
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" |