Skip to content

Commit

Permalink
again grep paths
Browse files Browse the repository at this point in the history
  • Loading branch information
shun2wang committed Dec 14, 2023
1 parent cf68990 commit 6556745
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/translation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ jobs:
- name: Stage all changes
id: staging
run: |
ls -d ${{ github.workspace }}/psychopy/app/locale/*/*/*.mo | grep -v "/en_US/" | xargs git add -f
ls -d ${{ github.workspace }}/psychopy/app/locale/*/*/*.mo | grep -v -E "*/en_US($|/)" | xargs git add -f
echo "NUM_OF_STAGED=$(git diff --staged --name-only | wc -l)" >> $GITHUB_OUTPUT
- name: Push translation changes
if: steps.staging.outputs.NUM_OF_STAGED > 0
run: |
git config user.name github-actions
git config user.email github-actions@github.com
ls -d ${{ github.workspace }}/psychopy/app/locale/*/*/*.mo | grep -v "/en_US/" | xargs git add
ls -d ${{ github.workspace }}/psychopy/app/locale/*/*/*.mo | grep -v -E "*/en_US($|/)" | xargs git add
git commit -m "[bot] Docs: Update translations"
git push

0 comments on commit 6556745

Please sign in to comment.