seitime-frappe/.github/helper/update_pot_file.sh
2024-01-19 19:19:46 +01:00

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