Skip to content

Commit cb604a7

Browse files
fix approval check
1 parent 212750c commit cb604a7

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

src/jobs/build_docs_with_approval.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ parameters:
4242
default: "source"
4343
description: "The directory where the clone of the source repo has been cloned."
4444
manual_approval_granted:
45-
type: boolean
46-
default: false
45+
type: string
46+
default: ""
4747
description: "This job will run code from forked repos. It should always be reviewed before this job is run."
4848
steps:
4949
- validate_param:
50-
param_name: "manual_approval_granted"
51-
param_value: true
50+
param_name: 'manual_approval_granted'
51+
param_value: "<<parameters.manual_approval_granted>>"
5252
- validate_params:
5353
git_email: <<parameters.git_email>>
5454
git_username: <<parameters.git_username>>

src/jobs/manual_approval.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/scripts/validate_param.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ValidateParam() {
55
echo "Error: Missing parameter"
66
exit 1
77
fi
8-
echo "Param is set correctly"
8+
echo "Param is set"
99
}
1010

1111
ORB_TEST_ENV="bats-core"

0 commit comments

Comments
 (0)