21 lines
499 B
Bash
21 lines
499 B
Bash
#!/bin/bash
|
|
set -e
|
|
cd ~ || exit
|
|
|
|
echo "Setting Up Bench..."
|
|
|
|
pip install frappe-bench
|
|
bench -v init frappe-bench --skip-assets --python "$(which python)" --frappe-path "${GITHUB_WORKSPACE}"
|
|
cd ./frappe-bench || exit
|
|
|
|
echo "Generating POT file..."
|
|
bench generate-pot-file --app frappe
|
|
|
|
echo "Commiting changes..."
|
|
cd "${GITHUB_WORKSPACE}"
|
|
git checkout -b update-pot-file
|
|
git add .
|
|
git commit -m "chore: update POT file"
|
|
|
|
echo "Creating a PR..."
|
|
gh pr create --base "${BRANCH}" --head update-pot-file
|