Skip to content

Commit 4d9f55e

Browse files
committed
merge latest
2 parents d0aaa51 + a251166 commit 4d9f55e

File tree

116 files changed

+5378532
-1510
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+5378532
-1510
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Receive repository dispatch event
2+
3+
on:
4+
# Listen to a repository dispatch event by the name of `dispatch-event`
5+
repository_dispatch:
6+
types: [update-references]
7+
workflow_dispatch:
8+
env:
9+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
11+
jobs:
12+
create-pull-request:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
17+
18+
- name: Setup Node.js 20
19+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
20+
with:
21+
node-version: 20.x
22+
23+
- name: Set github commit user
24+
env:
25+
GITHUB_EMAIL: ${{ vars.GH_EMAIL }}
26+
GITHUB_USER: ${{ vars.GH_USER }}
27+
run: |
28+
git config --global user.email $GITHUB_EMAIL
29+
git config --global user.name $GITHUB_USER
30+
31+
# Set branch name to be used as environment variable
32+
- name: Set Branch Name
33+
run: echo "BRANCH_NAME=$(echo update-ref-$(date +%s))" >> $GITHUB_ENV
34+
35+
# Create new branch, download, and commit changes to the new branch
36+
- name: Create new branch
37+
run: |
38+
git checkout -b ${{ env.BRANCH_NAME }}
39+
curl -L -o ${{ vars.REF_LOC }} ${{ vars.REMOTE_REF }}
40+
node tasks/clean-references.mjs
41+
git add ${{ vars.REF_LOC }} ${{ vars.CLEAN_LOC }}
42+
git commit -m "updating references"
43+
git push -u origin ${{ env.BRANCH_NAME }}
44+
45+
# Open pull request
46+
- name: Create Pull Request
47+
run: gh pr create -B main -H ${{ env.BRANCH_NAME }} --title 'Merge ${{ env.BRANCH_NAME }} into main' --body 'Created by Github action'

mdx-components.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { InternalLinkButton } from './src/components/InternalLinkButton';
2222
import { Grid, View } from '@aws-amplify/ui-react';
2323
import { Columns } from './src/components/Columns';
2424
import { Video } from './src/components/Video';
25+
import { ReferencePage } from './src/components/ApiDocs';
2526

2627
const ResponsiveImage = (props) => (
2728
<ExportedImage style={{ height: 'auto' }} {...props} />
@@ -71,6 +72,7 @@ export function useMDXComponents(components: MDXComponents): MDXComponents {
7172
Columns,
7273
Video,
7374
View,
75+
ReferencePage,
7476
...components
7577
};
7678
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"private": true,
1111
"dependencies": {
1212
"@aws-amplify/amplify-cli-core": "^4.3.9",
13-
"@aws-amplify/ui-react": "^6.1.12",
13+
"@aws-amplify/ui-react": "^6.3.1",
1414
"@docsearch/react": "3",
1515
"ajv": "^8.16.0",
1616
"aws-amplify": "^6.0.9",
@@ -75,7 +75,6 @@
7575
"remark-mdx-searchable": "^0.1.3",
7676
"rollup-plugin-node-polyfills": "^0.2.1",
7777
"sass": "^1.77.5",
78-
"serve": "^14.2.1",
7978
"tiny-glob": "0.2.9",
8079
"ts-jest": "^29.1.2",
8180
"ts-node": "^8.5.0",
152 KB
Loading
170 KB
Loading
157 KB
Loading
166 KB
Loading
149 KB
Loading
157 KB
Loading
152 KB
Loading

0 commit comments

Comments
 (0)