Skip to content

Commit 4831be9

Browse files
committed
env var typo
1 parent 37563b4 commit 4831be9

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

linux/publish

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ declare INPUT_DIR
1212
declare VERSION
1313
declare SIGNING_KEY_FILE
1414
declare FILE_SERVER_PASSWORD_FILE
15-
if [ "${GITHUB_ACTION:-false}" != "true" ]; then
15+
if [ "${GITHUB_ACTIONS:-false}" != "true" ]; then
1616
declare AWS_ACCESS_KEY
1717
declare AWS_SECRET_KEY_FILE
1818
else
@@ -34,7 +34,7 @@ function usage()
3434
echo " -v VERSION Passenger version number"
3535
echo " -S PATH File containing the package signing key"
3636
echo " -p PATH File containing the binary build automation file server password"
37-
if [ "${GITHUB_ACTION:-false}" != "true" ]; then
37+
if [ "${GITHUB_ACTIONS:-false}" != "true" ]; then
3838
echo " -a KEY Amazon S3 access key"
3939
echo " -s KEY File containing the Amazon S3 secret key"
4040
else
@@ -122,7 +122,7 @@ function parse_options()
122122
echo "ERROR: $FILE_SERVER_PASSWORD_FILE does not exist."
123123
exit 1
124124
fi
125-
if [ "${GITHUB_ACTION:-false}" != "true" ]; then
125+
if [ "${GITHUB_ACTIONS:-false}" != "true" ]; then
126126
if [[ "$AWS_ACCESS_KEY" = "" ]]; then
127127
echo "ERROR: please specify an AWS S3 access key with -a."
128128
exit 1
@@ -167,7 +167,7 @@ declare -a EXTRA_DOCKER_ARGS
167167
INPUT_DIR=$(absolute_path "$INPUT_DIR")
168168
FILE_SERVER_PASSWORD_FILE=$(absolute_path "$FILE_SERVER_PASSWORD_FILE")
169169
declare -a S3_ARGS
170-
if [ "${GITHUB_ACTION:-false}" != "true" ]; then
170+
if [ "${GITHUB_ACTIONS:-false}" != "true" ]; then
171171
AWS_SECRET_KEY_FILE=$(absolute_path "$AWS_SECRET_KEY_FILE")
172172
S3_ARGS=("-v" "$AWS_SECRET_KEY_FILE:/aws_secret_key:ro" "-e" "AWS_ACCESS_KEY=$AWS_ACCESS_KEY")
173173
else
@@ -177,7 +177,7 @@ else
177177
"-e" "AWS_SECRET_ACCESS_KEY"
178178
"-e" "AWS_SESSION_TOKEN"
179179
"-e" "AWS_REGION=us-east-1"
180-
"-e" "GITHUB_ACTION=true"
180+
"-e" "GITHUB_ACTIONS=true"
181181
)
182182
fi
183183
if [[ "$SIGNING_KEY_PASSWORD_FILE" != "" ]]; then

linux/support/publish-script-docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ source /system/shared/lib/library.sh
99
export WORKDIR=`setuser builder mktemp -d /tmp/publish.XXXXXXXX`
1010
export INPUT_DIR=/input
1111
export FILE_SERVER_PASSWORD=`cat /file_server_password`
12-
if [ "${GITHUB_ACTION:-false}" != "true" ]; then
12+
if [ "${GITHUB_ACTIONS:-false}" != "true" ]; then
1313
export AWS_SECRET_KEY=`cat /aws_secret_key`
1414
else
1515
export "AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID"
1616
export "AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY"
1717
export "AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN"
1818
export "AWS_REGION=$AWS_REGION"
19-
export "GITHUB_ACTION=$GITHUB_ACTION"
19+
export "GITHUB_ACTIONS=$GITHUB_ACTIONS"
2020
fi
2121

2222
setuser builder mkdir ~builder/.gnupg

shared/publish/publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require_envvar VERSION "$VERSION"
1111
require_envvar FILE_SERVER_PASSWORD "$FILE_SERVER_PASSWORD"
1212
require_envvar REPOSITORY_NAME "$REPOSITORY_NAME"
1313
require_envvar S3_BUCKET_NAME "$S3_BUCKET_NAME"
14-
if [ "${GITHUB_ACTION:-false}" != "true" ]; then
14+
if [ "${GITHUB_ACTIONS:-false}" != "true" ]; then
1515
require_envvar AWS_ACCESS_KEY "$AWS_ACCESS_KEY"
1616
require_envvar AWS_SECRET_KEY "$AWS_SECRET_KEY"
1717
else
@@ -64,7 +64,7 @@ declare -a S3CMD_ARGS
6464
if ! $TESTING; then
6565
S3CMD_ARGS+=(--skip-existing)
6666
fi
67-
if [ "${GITHUB_ACTION:-false}" != "true" ]; then
67+
if [ "${GITHUB_ACTIONS:-false}" != "true" ]; then
6868
cat >>"$WORKDIR/s3cfg" <<EOF
6969
access_key = $AWS_ACCESS_KEY
7070
secret_key = $AWS_SECRET_KEY

0 commit comments

Comments
 (0)