Skip to content

Commit

Permalink
fix: include .po files even if they are ignored (#235)
Browse files Browse the repository at this point in the history
Some repos have .po files ignored in .gitignore. Adding django.po and djangojs.po
will fail in the pipeline process because of that. We resolve the issue by
forcing git to include these files even if they are ignored in the source repo

Refs: FC-0012 OEP-58
  • Loading branch information
shadinaif authored Apr 20, 2023
1 parent 20ff362 commit 0f40b7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/extract-translation-source-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ jobs:
# extract_translations into EN_DIR and adds them
DJANGO_PATH=$(find $EN_DIR -name 'django.po')
DJANGOJS_PATH=$(find $EN_DIR -name 'djangojs.po')
git add $DJANGO_PATH $DJANGOJS_PATH -v
# use (-f) to force add the files even if they are ignored in the source repo
git add $DJANGO_PATH $DJANGOJS_PATH -f -v
# Check the git statuses of the translation source files
echo "GIT_STATUS=$(git status $DJANGO_PATH $DJANGOJS_PATH -s | wc -l)" >> $GITHUB_ENV
Expand Down

0 comments on commit 0f40b7e

Please sign in to comment.