Skip to content

Commit 95eb198

Browse files
committed
Bug fix
1 parent 7716077 commit 95eb198

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/callable-release-verification.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
uses: ./.github/workflows/callable-prebuild-amplify-data.yml
88
with:
99
runs_on: ubuntu-latest
10-
prebuild-samples-staging:
11-
secrets: inherit
12-
uses: ./.github/workflows/callable-prebuild-samples-staging.yml
10+
# prebuild-samples-staging:
11+
# secrets: inherit
12+
# uses: ./.github/workflows/callable-prebuild-samples-staging.yml
1313
# unit-tests:
1414
# needs:
1515
# - prebuild-ubuntu

scripts/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const getParameters = () => {
7272
process.exit(1);
7373
}
7474

75-
if (!sample || !fs.existsSync(`samples/${framework}/${category}/${sample}`)) {
75+
if (!sample || !pathExistsSync(`samples/${framework}/${sample}`)) {
7676
logError('Please enter a valid sample name');
7777
process.exit(1);
7878
}
@@ -112,8 +112,8 @@ const sampleDirectory = ({ framework, sample }) => {
112112
};
113113

114114
// bash command for serving sample on prod
115-
const runAppOnProd = ({ framework, category, sample, backend, env }) => {
116-
const sampleDir = sampleDirectory({ framework, category, sample });
115+
const runAppOnProd = ({ framework, sample, backend, env }) => {
116+
const sampleDir = sampleDirectory({ framework, sample });
117117
let distDir; // distribution directory
118118
if (framework === FRAMEWORKS.webpack) {
119119
const { name } = JSON.parse(fs.readFileSync(`${sampleDir}/package.json`));

0 commit comments

Comments
 (0)