-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
29 lines (23 loc) · 755 Bytes
/
entrypoint.sh
File metadata and controls
29 lines (23 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# Set environment variables from inputs
export GITHUB_TOKEN="${INPUT_GITHUB_TOKEN}"
export GITHUB_OWNER="${INPUT_GITHUB_OWNER}"
export REPOSITORIES="${INPUT_REPOSITORIES}"
export VERIFY_ONLY="${INPUT_VERIFY_ONLY}"
# Debug information
echo "Setting up environment variables:"
echo "GITHUB_OWNER: ${GITHUB_OWNER}"
echo "REPOSITORIES: ${REPOSITORIES}"
echo "VERIFY_ONLY: ${VERIFY_ONLY}"
# Build command based on inputs
COMMAND="python -m src.main"
if [ "${VERIFY_ONLY}" = "true" ]; then
COMMAND="${COMMAND} --verify-only"
fi
if [ -n "${REPOSITORIES}" ]; then
# Convert space-separated list to command line arguments
COMMAND="${COMMAND} --repos ${REPOSITORIES// / }"
fi
# Debug command
echo "Executing: ${COMMAND}"
exec $COMMAND