diff --git a/.github/workflows/update-emojimix-data.yml b/.github/workflows/update-emojimix-data.yml index 2048edbcca..9828d48d65 100644 --- a/.github/workflows/update-emojimix-data.yml +++ b/.github/workflows/update-emojimix-data.yml @@ -29,19 +29,19 @@ jobs: - name: Compare files id: compare run: | - if cmp --silent output.json /assets/emojimix/emoji_data.json; then + if cmp --silent output.json ./assets/emojimix/emoji_data.json; then echo "Files are identical. Skipping commit." exit 1 fi - name: Move file to assets directory - run: mv output.json /assets/emojimix/emoji_data.json + run: mv output.json ./assets/emojimix/emoji_data.json - name: Commit changes run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git add /assets/emojimix/emoji_data.json + git add ./assets/emojimix/emoji_data.json git commit -m "Update emoji data [skip ci]" - name: Push changes