This commit is contained in:
Zack Wang 2022-10-18 18:27:28 -04:00 committed by GitHub
parent 37f5b7f4a2
commit bc17371017
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -505,7 +505,7 @@ func (cr *containerReference) extractEnv(srcPath string, env *map[string]string)
// SOME_VAR=data=moredata // SOME_VAR=data=moredata
// SOME_VAR=datamoredata // SOME_VAR=datamoredata
singleLineEnvPattern = regexp.MustCompile(`^([^=]*)\=(.*)$`) singleLineEnvPattern = regexp.MustCompile(`^([^=]*)\=(.*)$`)
multiLineEnvPattern = regexp.MustCompile(`^([^<]+)<<(\w+)$`) multiLineEnvPattern = regexp.MustCompile(`^([^<]+)<<([\w-]+)$`)
} }
localEnv := *env localEnv := *env

View File

@ -66,3 +66,14 @@ jobs:
echo "${KEY2} doesn't == 'value'" echo "${KEY2} doesn't == 'value'"
exit 1 exit 1
fi fi
- name: "Write multiline env with UUID to $GITHUB_ENV"
run: |
echo 'KEY3<<ghadelimiter_b8273c6d-d535-419a-a010-b0aaac240e36' >> $GITHUB_ENV
echo value3 >> $GITHUB_ENV
echo 'ghadelimiter_b8273c6d-d535-419a-a010-b0aaac240e36' >> $GITHUB_ENV
- name: "Check multiline env with UUID to $GITHUB_ENV"
run: |
if [[ "${KEY3}" != "value3" ]]; then
echo "${KEY3} doesn't == 'value3'"
exit 1
fi