Skip to content

Commit e681895

Browse files
committed
Add the path
1 parent 286cdd9 commit e681895

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/import/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const EXTS = ['json', 'svg', 'png', 'jpg', 'jpeg', 'gif', 'mp4', 'pdf'];
66

77
const toOrg = 'adobecom';
88
const toRepo = 'da-playground';
9+
const importFrom = "https://main--milo--adobecom.hlx.live"
910

1011
export function calculateTime(startTime) {
1112
const totalTime = Date.now() - startTime;
@@ -89,4 +90,5 @@ async function importUrl(url) {
8990
}
9091
}
9192

92-
importUrl(new URL('https://main--bacom--adobecom.hlx.live' + "/customer-success-stories"))
93+
// TODO does it need the .md?
94+
importUrl(new URL(importFrom + process.env.PATH.replace(".md", "")));

.github/workflows/listen-to-publish-events.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
env:
99
DA_TOKEN: ${{ secrets.DA_TOKEN }}
10-
10+
PATH: ${{ github.event.client_payload.path }}
1111

1212
permissions:
1313
contents: read

0 commit comments

Comments
 (0)