Skip to content

Commit

Permalink
feat: Moved scripts dir in root to docker dir (#812)
Browse files Browse the repository at this point in the history
Moved scripts dir in root to docker dir

Co-authored-by: Hari John Kuriakose <[email protected]>
  • Loading branch information
chandrasekharan-zipstack and hari-kuriakose authored Oct 28, 2024
1 parent 125a930 commit 32b211d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pdm-lock-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
directories:
description: 'Comma-separated list of directories to update'
required: false
default: '' # Run for all dirs specified in scripts/pdm-lock.sh
default: '' # Run for all dirs specified in docker/scripts/pdm-lock-gen/pdm-lock.sh

jobs:
update_pdm_lock:
Expand Down Expand Up @@ -41,17 +41,17 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
chmod +x ./scripts/pdm-lock.sh
chmod +x ./docker/scripts/pdm-lock-gen/pdm-lock.sh
# Get the input from the workflow or use the default value
dirs="${{ github.event.inputs.directories }}"
# Check if directories input is empty
if [[ -z "$dirs" ]]; then
# No directories input given, run the script without arguments (process all directories)
echo "No directories specified, running on all dirs listed in scripts/pdm-lock.sh"
echo "No directories specified, running on all dirs listed in docker/scripts/pdm-lock-gen/pdm-lock.sh"
./scripts/pdm-lock.sh
./docker/scripts/pdm-lock-gen/pdm-lock.sh
else
# Convert comma-separated list into an array of directories
IFS=',' read -r -a dir_array <<< "$dirs"
Expand All @@ -60,7 +60,7 @@ jobs:
echo "Processing specified directories: ${dir_array[*]}"
# Pass directories as command-line arguments to the script
./scripts/pdm-lock.sh "${dir_array[@]}"
./docker/scripts/pdm-lock-gen/pdm-lock.sh "${dir_array[@]}"
fi
shell: bash

Expand Down
6 changes: 2 additions & 4 deletions scripts/README.md → docker/scripts/pdm-lock-gen/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Developer Scripts

## pdm-lock.sh
# Generate pdm.lock file

Helps generate pdm's lockfiles by running the command `pdm lock -G :all -v` on all necessary packages and services.

Expand All @@ -11,7 +9,7 @@ Helps generate pdm's lockfiles by running the command `pdm lock -G :all -v` on a
- `unstract/core`
- `unstract/flags`
- `platform-service`
- `x2text-service"`
- `x2text-service`
- `unstract/connectors`
- `unstract/tool-sandbox`

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion run-platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ run_services() {
fi

# Show release notes on version update if applicable
python3 "$script_dir/scripts/release-notes/print_release_notes.py" "$current_version" "$target_branch"
python3 "$script_dir/docker/scripts/release-notes/print_release_notes.py" "$current_version" "$target_branch"
fi
echo -e "\nOnce the services are up, visit ""$blue_text""http://frontend.unstract.localhost""$default_text"" in your browser."
echo -e "\nSee logs with:"
Expand Down

0 comments on commit 32b211d

Please sign in to comment.