Skip to content

Commit 32b211d

Browse files
feat: Moved scripts dir in root to docker dir (#812)
Moved scripts dir in root to docker dir Co-authored-by: Hari John Kuriakose <hari@zipstack.com>
1 parent 125a930 commit 32b211d

7 files changed

Lines changed: 8 additions & 10 deletions

File tree

.github/workflows/pdm-lock-automation.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
directories:
1212
description: 'Comma-separated list of directories to update'
1313
required: false
14-
default: '' # Run for all dirs specified in scripts/pdm-lock.sh
14+
default: '' # Run for all dirs specified in docker/scripts/pdm-lock-gen/pdm-lock.sh
1515

1616
jobs:
1717
update_pdm_lock:
@@ -41,17 +41,17 @@ jobs:
4141
env:
4242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343
run: |
44-
chmod +x ./scripts/pdm-lock.sh
44+
chmod +x ./docker/scripts/pdm-lock-gen/pdm-lock.sh
4545
4646
# Get the input from the workflow or use the default value
4747
dirs="${{ github.event.inputs.directories }}"
4848
4949
# Check if directories input is empty
5050
if [[ -z "$dirs" ]]; then
5151
# No directories input given, run the script without arguments (process all directories)
52-
echo "No directories specified, running on all dirs listed in scripts/pdm-lock.sh"
52+
echo "No directories specified, running on all dirs listed in docker/scripts/pdm-lock-gen/pdm-lock.sh"
5353
54-
./scripts/pdm-lock.sh
54+
./docker/scripts/pdm-lock-gen/pdm-lock.sh
5555
else
5656
# Convert comma-separated list into an array of directories
5757
IFS=',' read -r -a dir_array <<< "$dirs"
@@ -60,7 +60,7 @@ jobs:
6060
echo "Processing specified directories: ${dir_array[*]}"
6161
6262
# Pass directories as command-line arguments to the script
63-
./scripts/pdm-lock.sh "${dir_array[@]}"
63+
./docker/scripts/pdm-lock-gen/pdm-lock.sh "${dir_array[@]}"
6464
fi
6565
shell: bash
6666

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Developer Scripts
2-
3-
## pdm-lock.sh
1+
# Generate pdm.lock file
42

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

@@ -11,7 +9,7 @@ Helps generate pdm's lockfiles by running the command `pdm lock -G :all -v` on a
119
- `unstract/core`
1210
- `unstract/flags`
1311
- `platform-service`
14-
- `x2text-service"`
12+
- `x2text-service`
1513
- `unstract/connectors`
1614
- `unstract/tool-sandbox`
1715

File renamed without changes.
File renamed without changes.
File renamed without changes.

run-platform.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ run_services() {
298298
fi
299299

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

0 commit comments

Comments
 (0)