Skip to content

Nextjs upgrade #7583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 78 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
51a9ecb
Uncomment out search (#7471)
timngyn May 3, 2024
0c6466f
Quickstart bugs (#7475)
swaminator May 3, 2024
32f7c21
prettify redirects (#7478)
katieklein May 3, 2024
4d37dca
Updated typo in manual text (#7464)
ErikCH May 3, 2024
bd4dccd
fix geo manual author callouts (#7473)
josefaidt May 3, 2024
151f083
Added Logging Dependency, Gradle Import Guide (#7479)
joon-won May 3, 2024
5a0f606
Updated flush event code snippet to use Analytics Plugin Options (#7472)
yuhengshs May 4, 2024
a5bc7d1
Fix Date for lastmod (#7480)
timngyn May 4, 2024
d256171
make how amplify works names more diverse (#7481)
aspittel May 4, 2024
c85e776
Fix Success message showing twice for Next.js (#7483)
swaminator May 5, 2024
edfc883
Update index.mdx (#7484)
renebrandel May 5, 2024
d3f2895
Update Categories List for Android, swift & Flutter (#7476)
offlineprogrammer May 6, 2024
43d25b0
Resolve Android Gen2 docs issues (#7470)
tylerjroach May 6, 2024
2aae581
add favicon to public/assets/icon (#7501)
katieklein May 6, 2024
03e62fe
restructured the contents for connecting to existing data sources (#7…
renebrandel May 6, 2024
735ecce
Fixed min version support for gen1 AndroidV2 Analytics (#7502)
yuhengshs May 6, 2024
baa6e1b
Connect to HTTP datasource (#7459)
chrisbonifacio May 6, 2024
c62b7a9
added specific VPC language for `npx ampx generate schema-from-databa…
renebrandel May 6, 2024
d3011e5
Add github-actions as a package ecosystem for dependabot (#7477)
timngyn May 6, 2024
8f97778
Android Coroutines support (#7498)
offlineprogrammer May 6, 2024
f359b97
Bump slackapi/slack-github-action from 1.24.0 to 1.26.0 (#7507)
dependabot[bot] May 6, 2024
98a79ad
Bump aws-actions/configure-aws-credentials from 2.2.0 to 4.0.2 (#7509)
dependabot[bot] May 6, 2024
3406758
Bump actions/checkout from 3 to 4 (#7506)
dependabot[bot] May 6, 2024
b75e1e7
Bump actions/github-script from 6.4.1 to 7.0.1 (#7510)
dependabot[bot] May 6, 2024
530c2d5
chore: update jest (#7512)
hbuchel May 6, 2024
fa3fedb
Bump actions/setup-node from 3.7.0 to 4.0.2 (#7508)
dependabot[bot] May 6, 2024
61ef6a1
rest api: separate example to individual pages and change config (#7494)
ykethan May 6, 2024
0edaab1
Remove empty/unused page (#7514)
timngyn May 6, 2024
219e576
feat: add Video component (#7500)
hbuchel May 6, 2024
f02d216
chore: convert video elements to Video component (#7503)
hbuchel May 6, 2024
fbe168f
update faq text (#7497)
aspittel May 6, 2024
a16bb61
added FAQ on how to use Gen 2 with JS only frontends (#7517)
renebrandel May 6, 2024
084c70c
missing todolist (#7515)
offlineprogrammer May 6, 2024
60cfe86
Fix: correct typo (#7518)
jacoblogan May 6, 2024
821ba2d
update video for deploy to remove account info (#7513)
aspittel May 6, 2024
9896e73
Update index.mdx (#7521)
rashodkorala May 7, 2024
f161a99
Fix a heading order on build-a-backend/auth/set-up-auth (#7524)
hbuchel May 7, 2024
3c56325
Update index.mdx (#7525)
renebrandel May 7, 2024
ed0d097
Update index.mdx (#7527)
renebrandel May 7, 2024
2b463a6
updated video to include the final "save and deploy" step (#7526)
renebrandel May 7, 2024
d897306
Fix Typo and update to puppeteer script (#7530)
jacoblogan May 7, 2024
ceb8c60
Fixed missing gradle imports for Logging category (#7511)
yuhengshs May 7, 2024
1d89651
Update index.mdx (#7532)
renebrandel May 7, 2024
0436352
fixed some missed spots of new authZ and relationship pattern (#7534)
renebrandel May 8, 2024
fea6f52
fix typo (#7519)
renebrandel May 8, 2024
186e6d3
Renbran/sql ssl (#7538)
renebrandel May 8, 2024
c56985b
fixed out of date schema types (#7537)
renebrandel May 8, 2024
6bd3baf
amazon-bedrock-region-support (#7540)
chrisbonifacio May 8, 2024
f6c1bcb
rename sandbox (#7533)
aspittel May 8, 2024
79efebc
Update Android version (#7505)
tylerjroach May 8, 2024
70af402
fix storage typo (#7489)
aspittel May 8, 2024
4d3e3e4
add callout for group access precedence (#7541)
hdworld11 May 8, 2024
d8d70f4
Included an options section for the Generate form command. (#7551)
AnilMaktala May 8, 2024
3c2f5e2
add troubleshooting guide for "Stack CDKToolkit already exists" (#7548)
josefaidt May 8, 2024
20ce143
chore(swift): update storage get started code snippet (#7549)
phantumcode May 8, 2024
38fba55
Update index.mdx (#7552)
tbelmega May 8, 2024
7996997
addToSchema (#7544)
renebrandel May 9, 2024
5b5b809
Terminal numbers (#7557)
jacoblogan May 9, 2024
ae3cdf4
Update aws-secretsmanager-get-secrets (#7558)
timngyn May 9, 2024
62e3fd0
Bump @aws-amplify/amplify-cli-core from 4.3.0 to 4.3.5 (#7535)
dependabot[bot] May 9, 2024
4371299
change view to visit (#7565)
hdworld11 May 9, 2024
31a5dfd
add saml and oidc example (#7566)
ykethan May 9, 2024
1ab0fd6
Update upload-artifact (#7559)
timngyn May 9, 2024
dc62e79
Move Learn to sidebar for gen 1 (#7543)
timngyn May 9, 2024
637e82d
Default to hide line numbers for bash codeblocks (#7564)
jacoblogan May 9, 2024
e5553be
Fix indentation (#7563)
timngyn May 10, 2024
bc893ba
replace last instances of ContentFilter with InlineFilter (#7568)
jacoblogan May 10, 2024
fc6b89b
fix(Gen2)[Swift]: Addressing some Analytics issues (#7553)
sebaland May 10, 2024
4c50cd6
fix(swift): Data - Set up Amplify Data code improvements (#7555)
lawmicha May 10, 2024
f524aa5
update sandbox images and quickstart links (#7571)
Jay2113 May 10, 2024
7139b6f
chore: update puppeteer (#7550)
hbuchel May 10, 2024
7cf6de7
chore: updated redirects.json and added additional icon file causing …
katieklein May 13, 2024
73b31e3
fix(Swift): Addressing some gaps in Geo Gen2 doc pages (#7573)
sebaland May 14, 2024
4d708ed
chore: update design/functionality of copying highlighted code snippe…
hbuchel May 14, 2024
4da95a3
upgrade nextjs
May 14, 2024
5b4f75a
Merge branch 'next-release/main' into nextjs-upgrade
katieklein May 17, 2024
0bd6678
Update LayoutHeader.tsx
katieklein May 20, 2024
77a57f7
Update LayoutHeader.tsx
katieklein May 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ updates:
allow:
# Allow updates for any packages starting with "@aws-amplify"
- dependency-name: "@aws-amplify*"
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
# Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.)
directory: "/"
schedule:
interval: "monthly"
10 changes: 5 additions & 5 deletions .github/workflows/add_deleted_assets_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
pull-requests: write # used to add label
steps:
- name: Checkout repository to get the workflow scripts
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 https://github.com/actions/checkout/commit/c85c95e3d7251135ab7dc9ce3241c5835cc595a9
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Download artifact
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
WORKSPACE: ${{ github.workspace }}
with:
Expand All @@ -26,16 +26,16 @@ jobs:
const fs = require('fs');
const artifactName = process.env.ARTIFACT_NAME;
const workspace = process.env.WORKSPACE
getArtifact({github, context, fs, artifactName, workspace});
await getArtifact({github, context, fs, artifactName, workspace});
- name: Unzip artifact
run: unzip '${{ env.ARTIFACT_NAME }}.zip'
- name: Add redirects-needed label to PR
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { addLabelForDeletedFiles } = require('./.github/workflows/scripts/add_label_for_deleted_files.js');
const fs = require('fs');
const artifactName = process.env.ARTIFACT_NAME;
const label = process.env.LABEL_TO_ADD;
addLabelForDeletedFiles({github, context, fs, core, artifactName, label});
await addLabelForDeletedFiles({github, context, fs, core, artifactName, label});
10 changes: 5 additions & 5 deletions .github/workflows/add_redirects_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
pull-requests: write # used to add label
steps:
- name: Checkout repository to get the workflow scripts
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 https://github.com/actions/checkout/commit/c85c95e3d7251135ab7dc9ce3241c5835cc595a9
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Download artifact
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
WORKSPACE: ${{ github.workspace }}
with:
Expand All @@ -26,16 +26,16 @@ jobs:
const fs = require('fs');
const artifactName = process.env.ARTIFACT_NAME;
const workspace = process.env.WORKSPACE
getArtifact({github, context, fs, artifactName, workspace});
await getArtifact({github, context, fs, artifactName, workspace});
- name: Unzip artifact
run: unzip '${{ env.ARTIFACT_NAME }}.zip'
- name: Add redirects-needed label to PR
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { addLabelForDeletedFiles } = require('./.github/workflows/scripts/add_label_for_deleted_files.js');
const fs = require('fs');
const artifactName = process.env.ARTIFACT_NAME;
const label = process.env.LABEL_TO_ADD;
addLabelForDeletedFiles({github, context, fs, core, artifactName, label});
await addLabelForDeletedFiles({github, context, fs, core, artifactName, label});
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Setup Node.js 20.x
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v.3.8.1 https://github.com/actions/setup-node/commit/5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x
- name: Install Dependencies
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/check_bundle_size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
ref: main
- name: Setup Node.js 20
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 https://github.com/actions/setup-node/commit/5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x
- name: Install dependencies
Expand All @@ -26,19 +26,19 @@ jobs:
NODE_OPTIONS: --max_old_space_size=4096
run: ANALYZE=true yarn next-build
- name: Check base bundle size of select pages
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
id: base-bundle-sizes
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { checkBundleSize } = require('./.github/workflows/scripts/check_bundle_size.js');
return checkBundleSize();
- name: Checkout PR branch
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
ref: ${{ github.head_ref }}
- name: Setup Node.js 20
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v.3.8.1 https://github.com/actions/setup-node/commit/5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x
- name: Install dependencies
Expand All @@ -50,15 +50,15 @@ jobs:
NODE_OPTIONS: --max_old_space_size=4096
run: ANALYZE=true yarn next-build
- name: Check head bundle size of select pages
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
id: head-bundle-sizes
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { checkBundleSize } = require('./.github/workflows/scripts/check_bundle_size.js');
return checkBundleSize();
- name: Compare bundle page bundle sizes
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
id: compare-bundles
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/check_for_broken_links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,36 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Setup Node.js 20
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x
- name: Install Dependencies
run: yarn
- name: Run Link Checker
id: checkLinks
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
result-encoding: string
script: |
const { checkProdLinks } = require('./tasks/link-checker.js');
return await checkProdLinks();
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
role-to-assume: arn:aws:iam::464149486631:role/github_action_read_slack_webhook_url
aws-region: us-west-2
- name: Read secrets from AWS Secrets Manager into environment variables
uses: aws-actions/aws-secretsmanager-get-secrets@022e8919774ecb75e8e375656d7b1898936ab878 # v1.0.4
uses: aws-actions/aws-secretsmanager-get-secrets@f91b2a3e784edce744f972af1685eca7e24d2302 # v2.0.2
with:
secret-ids: |
SLACK_WEBHOOK_URL
parse-json-secrets: true
- name: Send custom JSON data to Slack workflow
if: steps.checkLinks.outputs.result
id: slack
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
with:
payload: |
{
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check_for_console_errors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.2 https://github.com/actions/checkout/commit/b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Setup Node.js 20.x
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0 https://github.com/actions/setup-node/commit/e33196f7422957bea03ed53f6fbb155025ffc7b8
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x
- name: Install Dependencies
Expand All @@ -27,7 +27,7 @@ jobs:
sleep 5
- name: Run Console Errors
id: consoleErrors
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
result-encoding: string
script: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_for_deleted_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository to get the workflow scripts
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 https://github.com/actions/checkout/commit/c85c95e3d7251135ab7dc9ce3241c5835cc595a9
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Get count of deleted files
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
id: set-deleted-files-count
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -23,7 +23,7 @@ jobs:
const paths = PATHS_TO_CHECK.split(',');

const { getDeletedFilesFromPR } = require('./.github/workflows/scripts/utilities.js');
return getDeletedFilesFromPR({github, context, paths});
return await getDeletedFilesFromPR({github, context, paths});
- name: Create artifact containing the PR number and deleted file count
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
Expand All @@ -32,7 +32,7 @@ jobs:
echo ${{ env.PR_NUMBER }} >> $artifactName
echo ${{ steps.set-deleted-files-count.outputs.result }} >> $artifactName
- name: Upload the deleted assets file to artifacts
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 https://github.com/actions/upload-artifact/commit/0b7f8abb1508181956e8e162db84b466c27e18ce
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: ${{ env.ARTIFACT_NAME }}
path: '${{ env.ARTIFACT_NAME }}.txt'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/check_for_new_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Get count of added files
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
id: set-added-files-count
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
script: |
const { getAddedFiles } = require('./.github/workflows/scripts/check_for_new_files.js');
return getAddedFiles({github, context, core});
return await getAddedFiles({github, context, core});
- name: Install npm package ignore
if: ${{ steps.set-added-files-count.outputs.result > 0 }}
run: yarn add ignore@5.2.4 -W # help verify CODEOWNERS
- name: Check file against CODEOWNERS
if: ${{ steps.set-added-files-count.outputs.result > 0 }}
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
CURRENT_BRANCH: ${{ github.head_ref }}
CURRENT_REPO: ${{ github.repository }}
Expand All @@ -34,4 +34,4 @@ jobs:
script: |
const ignore = require('ignore');
const { validateCodeowners } = require('./.github/workflows/scripts/check_for_new_files.js');
validateCodeowners({github, context, fetch, ignore});
await validateCodeowners({github, context, fetch, ignore});
6 changes: 3 additions & 3 deletions .github/workflows/check_for_new_fragments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Check if there are new fragments
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
id: new-fragments-boolean
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -20,7 +20,7 @@ jobs:
return getAddedFragments({github, context, core});
- name: Add Comment to PR if new fragments have been added
if: ${{ steps.new-fragments-boolean.outputs.result > 0 }}
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
CURRENT_BRANCH: ${{ github.head_ref }}
CURRENT_REPO: ${{ github.repository }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_for_redirects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository to get the workflow scripts
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 https://github.com/actions/checkout/commit/c85c95e3d7251135ab7dc9ce3241c5835cc595a9
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Get count of deleted files
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
id: set-deleted-files-count
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -23,7 +23,7 @@ jobs:
const paths = PATHS_TO_CHECK.split(',');

const { getDeletedFilesFromPR } = require('./.github/workflows/scripts/utilities.js');
return getDeletedFilesFromPR({github, context, paths});
return await getDeletedFilesFromPR({github, context, paths});
- name: Create artifact containing the PR number and deleted file count
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
Expand All @@ -32,7 +32,7 @@ jobs:
echo ${{ env.PR_NUMBER }} >> $artifactName
echo ${{ steps.set-deleted-files-count.outputs.result }} >> $artifactName
- name: Upload the redirects file to artifacts
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 https://github.com/actions/upload-artifact/commit/0b7f8abb1508181956e8e162db84b466c27e18ce
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: ${{ env.ARTIFACT_NAME }}
path: '${{ env.ARTIFACT_NAME }}.txt'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check_pr_for_broken_links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Setup Node.js 20
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0 https://github.com/actions/setup-node/commit/e33196f7422957bea03ed53f6fbb155025ffc7b8
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x
- name: Install Dependencies
Expand All @@ -27,7 +27,7 @@ jobs:
sleep 5
- name: Run Link Checker
id: checkLinks
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
result-encoding: string
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
# Minimal depth 2 so we can checkout the commit before possible merge commit.
fetch-depth: 2
Expand Down
Loading
Loading