Skip to content

Commit

Permalink
grep -v
Browse files Browse the repository at this point in the history
  • Loading branch information
shun2wang committed Dec 14, 2023
1 parent 75b4a97 commit 6440bcc
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 @@ -31,7 +31,7 @@ jobs:
id: staging
run: |
ls -d ${{ github.workspace }}/psychopy/app/locale/*/*/*.mo \
| grep -v "$(ls -d ${{ github.workspace }}/psychopy/app/locale/en_US/LC_MESSAGE/*.mo)" | xargs git add -f
| grep -v "ls -d ${{ github.workspace }}/psychopy/app/locale/en_US/LC_MESSAGE/*.mo" | xargs git add -f
echo "NUM_OF_STAGED=$(git diff --staged --name-only | wc -l)" >> $GITHUB_OUTPUT
- name: Push translation changes
Expand All @@ -40,6 +40,6 @@ jobs:
git config user.name github-actions
git config user.email github-actions@github.com
ls -d ${{ github.workspace }}/psychopy/app/locale/*/*/*.mo \
| grep -v "$(ls -d ${{ github.workspace }}/psychopy/app/locale/en_US/LC_MESSAGE/*.mo)" | xargs git add
| grep -v "ls -d ${{ github.workspace }}/psychopy/app/locale/en_US/LC_MESSAGE/*.mo" | xargs git add
git commit -m "[bot] Docs: Update translations"
git push

0 comments on commit 6440bcc

Please sign in to comment.