Skip to content

Commit

Permalink
Source virtualenv in each script explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
burner1024 committed Sep 28, 2024
1 parent 59f27e0 commit 53d51ea
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions action/dir2msgstr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set -xeu -o pipefail

# shellcheck source=/dev/null # for some reason source=init.sh doesn't work
source "$(dirname "$0")/init.sh"
# shellcheck source=/dev/null # Nothing interesting here
source "$VIRTUALENV_PATH/bin/activate" >/dev/null 2>&1 || true

if [[ "$INPUT_DIR2MSGSTR" == 'true' ]]; then
echo "Loading updated translations"
Expand Down
3 changes: 0 additions & 3 deletions action/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,3 @@ git config user.email "github-actions[bot]@users.noreply.github.com"
git config core.autocrlf false

export commit_message_base="BGforgeNet/msg2po:"

# shellcheck source=/dev/null # Nothing interesting here
source "$VIRTUALENV_PATH/bin/activate" >/dev/null 2>&1 || true
3 changes: 3 additions & 0 deletions action/poify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -xeu -o pipefail

# shellcheck source=/dev/null # for some reason source=init.sh doesn't work
source "$(dirname "$0")/init.sh"
# shellcheck source=/dev/null # Nothing interesting here
source "$VIRTUALENV_PATH/bin/activate" >/dev/null 2>&1 || true


if [[ "$INPUT_POIFY" == 'true' ]]; then
echo 'Updating POT'
Expand Down
2 changes: 2 additions & 0 deletions action/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set -xeu -o pipefail

# shellcheck source=/dev/null # for some reason source=init.sh doesn't work
source "$(dirname "$0")/init.sh"
# shellcheck source=/dev/null # Nothing interesting here
source "$VIRTUALENV_PATH/bin/activate" >/dev/null 2>&1 || true

if [[ "$INPUT_SINGLE_COMMIT" == "true" ]]; then
if [[ "$(git status --porcelain | wc -l)" == "0" ]]; then
Expand Down
3 changes: 3 additions & 0 deletions action/unpoify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -xeu -o pipefail

# shellcheck source=/dev/null # for some reason source=init.sh doesn't work
source "$(dirname "$0")/init.sh"
# shellcheck source=/dev/null # Nothing interesting here
source "$VIRTUALENV_PATH/bin/activate" >/dev/null 2>&1 || true


if [[ "$INPUT_UNPOIFY" == 'true' ]]; then
echo 'Extracting translations from PO'
Expand Down

0 comments on commit 53d51ea

Please sign in to comment.