-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathentrypoint.sh
More file actions
37 lines (30 loc) · 898 Bytes
/
Copy pathentrypoint.sh
File metadata and controls
37 lines (30 loc) · 898 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
30
31
32
33
34
35
36
37
#!/bin/sh -l
# Extract inputs from 'with' GitHub context using the INPUT_ prefix
export OWNER="${INPUT_OWNER}"
export REPOSITORY="${INPUT_REPOSITORY}"
export ACCESS_TOKEN="${INPUT_ACCESS_TOKEN}"
export SECRET_NAME="${INPUT_SECRET_NAME}"
export SECRET_VALUE="${INPUT_SECRET_VALUE}"
# Check if required inputs are provided
if [ -z "$OWNER" ]; then
echo "OWNER is a required input and must be set."
exit 1
fi
if [ -z "$REPOSITORY" ]; then
echo "REPOSITORY is a required input and must be set."
exit 1
fi
if [ -z "$ACCESS_TOKEN" ]; then
echo "ACCESS_TOKEN is a required input and must be set."
exit 1
fi
if [ -z "$SECRET_NAME" ]; then
echo "SECRET_NAME is a required input and must be set."
exit 1
fi
if [ -z "$SECRET_VALUE" ]; then
echo "SECRET_VALUE is a required input and must be set."
exit 1
fi
# Run the Python script with the provided inputs
python /usr/src/app/run.py