Skip to content

fix(deps): update dependency @adobe/rum-distiller to v1.15.0 #2

fix(deps): update dependency @adobe/rum-distiller to v1.15.0

fix(deps): update dependency @adobe/rum-distiller to v1.15.0 #2

name: Update import maps
on:
pull_request:
branches:
- 'main'
jobs:
build:
if: startsWith(github.head_ref, 'r-')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Configure Git
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Install dependencies
run: npm install
- name: Update import maps
run: tools/imports.sh
- name: Commit changes
run: |
git add -A
git commit -m "chore(oversight): update import maps"
git push origin HEAD:${{ github.head_ref }}
- name: Update PR comment to include aem.live test URL
run: |
OLD_BODY=$(gh pr view --json body --jq ".body")
BRANCH_NAME=$(echo ${{ github.head_ref }})
NEW_BODY="$OLD_BODY\n\nTest at: https://$BRANCH_NAME--helix-website--adobe.aem.live/tools/oversight/explorer.html?domain=www.emigrationbrewing.com"
gh pr edit ${{ github.event.number }} --body "$NEW_BODY"