forked from hlxsites/danaher-ls-aem
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from hlxsites/main-stage
Merge "Main" from stage
- Loading branch information
Showing
91 changed files
with
18,460 additions
and
34,376 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Deploy Converter | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/deploy-converter.yaml | ||
- tools/actions/** | ||
- tools/importer/** | ||
- tools/importer/transformers/** | ||
- paths.yaml | ||
- converter.yaml | ||
- package-lock.json | ||
push: | ||
paths: | ||
- .github/workflows/deploy-converter.yaml | ||
- tools/actions/** | ||
- tools/importer/** | ||
- tools/importer/transformers/** | ||
- paths.yaml | ||
- converter.yaml | ||
- package-lock.json | ||
branches: | ||
- main | ||
|
||
jobs: | ||
# undeploy action in the "convert" package with the name of the current branch | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
- name: Cache node modules | ||
id: cache-npm | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
# npm cache files are stored in `~/.npm` on Linux/macOS | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- run: npm ci | ||
- run: npm run converter:build:prod | ||
- run: npm run converter:deploy -- convert/${ACTION_NAME} | ||
env: | ||
ACTION_NAME: ${{ github.head_ref || github.ref_name }} | ||
WSK_AUTH: ${{ secrets.WSK_AUTH }} | ||
WSK_NAMESPACE: ${{ secrets.WSK_NAMESPACE }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Undeploy Converter Branches | ||
|
||
on: | ||
schedule: | ||
# every day at 00:00 | ||
- cron: '0 0 * * *' | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
# undeploy any action in the "convert" package that is older then 5 days | ||
undeploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
- name: Cache node modules | ||
id: cache-npm | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
# npm cache files are stored in `~/.npm` on Linux/macOS | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- run: npm ci | ||
- run: npm run converter:undeploy -- convert github:open_pull_request | ||
env: | ||
WSK_AUTH: ${{ secrets.WSK_AUTH }} | ||
WSK_NAMESPACE: ${{ secrets.WSK_NAMESPACE }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { decorateModals } from '../../scripts/scripts.js'; | ||
|
||
export default function decorate(block) { | ||
block.parentNode.prepend(document.createElement('hr')); | ||
block.classList.add(...'grid max-w-7xl w-full mx-auto gap-6 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 px-4 sm:px-0 my-16'.split(' ')); | ||
[...block.children].forEach((element) => { | ||
element.classList.add(...'items-start mr-20 lg:mr-40'.split(' ')); | ||
element.querySelector('img')?.classList.add('py-1'); | ||
element.querySelector('h3')?.classList.add(...'text-lg p-0 my-1 sm:text-lg font-medium'.split(' ')); | ||
const link = element.querySelector('a'); | ||
if (link) { | ||
link.innerHTML += ' ->'; | ||
link.classList.add(...'text-sm font-medium text-danaherpurple-500'.split(' ')); | ||
if (link.href.endsWith('#RequestAQuote')) link.classList.add('show-modal-btn'); | ||
} | ||
}); | ||
block.parentNode.append(document.createElement('hr')); | ||
block.parentNode.classList.add('py-6'); | ||
decorateModals(block); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# the origin to fetch content from | ||
origin: https://author-p93411-e849552.adobeaemcloud.com/ | ||
suffix: ".html?wcmmode=disabled" | ||
# the live urls of the content | ||
# this is used to make absolute links to the urls domain reliatve | ||
# it may be an array, if there are mutliple urls possible like | ||
# - https://stage.example.com | ||
# - https://www.example.com | ||
# - https://example.com | ||
liveUrls: | ||
- https://stage.lifesciences.danaher.com | ||
- https://lifesciences.danaher.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.