Skip to content

Commit

Permalink
only rename json files if there are changes
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Jan 12, 2024
1 parent 876908c commit becfba3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/wp-i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,16 @@ jobs:
- name: Generate language files
run: composer run-script i18n

- name: Rename language json files
shell: bash
run: composer run-script i18n-json-rename

- name: Check if there are file changes
id: changes
continue-on-error: true
run: git diff --exit-code

- name: Rename language json files
if: steps.changes.outcome == 'failure'
shell: bash
run: composer run-script i18n-json-rename

- name: Commit updated language files
if: steps.changes.outcome == 'failure'
run: |
Expand Down

0 comments on commit becfba3

Please sign in to comment.