Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,23 @@ jobs:
cd /home/frappe
su frappe bash -c "bench init frappe-bench --skip-redis-config-generation --no-procfile --skip-assets"

- name: Get Dependent Apps
run: |
cd /home/frappe/frappe-bench
# Use public URL for public repos, authenticated URL for private repos
if [ "${{ github.event.pull_request.head.repo.private }}" = "false" ]; then
# This is a public repository (could be a fork or not)
git clone https://github.com/${{ github.event.pull_request.head.repo.full_name }} -b ${{ github.event.pull_request.head.ref }} --depth=1 app_repo
else
# Private repository, use authentication
git clone https://rtbot:${{ secrets.RTBOT_TOKEN }}@github.com/${{ github.event.pull_request.head.repo.full_name }} -b ${{ github.event.pull_request.head.ref }} --depth=1 app_repo
fi
DEPS=$(grep -E "required_apps\s*=\s*\[" app_repo/*/hooks.py | sed 's/.*\[\(.*\)\]/\1/g' | tr -d '"' | tr -d "'" | tr ',' '\n' | awk '{$1=$1};1')
rm -rf app_repo
for dep in $DEPS; do
su frappe bash -c "bench get-app $dep"
done

- name: Get APP and Build
run: |
cd /home/frappe/frappe-bench
Expand Down