We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6d1152 commit f5c1f13Copy full SHA for f5c1f13
.codebuild/scripts/lint_pr.sh
@@ -1,6 +1,8 @@
1
set -xeo pipefail
2
# extract the PR number from the PR link
3
PR_NUM=${CODEBUILD_WEBHOOK_TRIGGER##*/}
4
+PROJECT_USERNAME=aws-amplify
5
+REPO_NAME=amplify-codegen
6
7
if [ -z "$PR_NUM" ]; then
8
echo "Could not determine PR number. Cannot determine fork point for linting. Skipping linting."
.codebuild/scripts/publish.sh
@@ -1,5 +1,9 @@
#!/bin/bash -e
+if [[ "$CODEBUILD_WEBHOOK_TRIGGER" == "pr/"* ]]; then
+ BRANCH_NAME=${CODEBUILD_WEBHOOK_BASE_REF##*/}
+fi
+
if [ -z "$BRANCH_NAME" ]; then
echo "BRANCH_NAME is missing"
9
exit 1
0 commit comments