Skip to content

Commit e8cf6bc

Browse files
authored
Merge pull request #572 from aleksandrychev/ENT-13092
ENT-13092: Fixed issues with s3uploading.js
2 parents b201c56 + a885ee5 commit e8cf6bc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/mirroring.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ jobs:
6565
name: Parse commit message from file into variable
6666
if: hashFiles('git_diff_exists') != ''
6767
run: |
68-
body=$(cat commitMsg.txt)
69-
body="${body//$'\n'/'%0A'}"
70-
echo "body=$body" >> $GITHUB_OUTPUT
68+
echo "body<<EOF" >> $GITHUB_OUTPUT
69+
cat commitMsg.txt >> $GITHUB_OUTPUT
70+
echo "EOF" >> $GITHUB_OUTPUT
7171
7272
- name: Create Pull Request
7373
if: hashFiles('git_diff_exists') != ''

scripts/s3uploading.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const s3 = new AWS.S3({
99
region: process.env.AWS_REGION
1010
});
1111
const tmp = `${workdir}/tmp`;
12-
const readmeRegex = new RegExp('/readme((\.(org|md|adoc|rst)$)|$)', 'i'); // readme, readme.org, readme.adoc, readme.md, readme.rst
12+
const readmeRegex = new RegExp('/readme((\\.(org|md|adoc|rst)$)|$)', 'i'); // readme, readme.org, readme.adoc, readme.md, readme.rst
1313
const Bucket = process.env.BUCKET_NAME
1414

1515
const readJSON = (file) => JSON.parse(fs.readFileSync(file, 'utf8'));

0 commit comments

Comments
 (0)