Skip to content

Commit 15deb20

Browse files
Rebuild and update dist folder with appId fix
1 parent f5e52fd commit 15deb20

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

dist/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -2879,12 +2879,14 @@ function main() {
28792879
core.setFailed("SITE_COLLECTION_URL not specified");
28802880
}
28812881
else {
2882-
appId = yield executeCLIMicrosoft365Command(`spo app add -p ${appFilePath} --scope sitecollection --appCatalogUrl ${siteCollectionUrl} ${overwrite}`, true);
2882+
const app = yield executeCLIMicrosoft365Command(`spo app add -p ${appFilePath} --scope sitecollection --appCatalogUrl ${siteCollectionUrl} ${overwrite}`, true);
2883+
appId = JSON.parse(app).UniqueId;
28832884
yield executeCLIMicrosoft365Command(`spo app deploy --id ${appId} --scope sitecollection --appCatalogUrl ${siteCollectionUrl} ${skipFeatureDeployment}`);
28842885
}
28852886
}
28862887
else {
2887-
appId = yield executeCLIMicrosoft365Command(`spo app add -p ${appFilePath} ${overwrite}`, true);
2888+
const app = yield executeCLIMicrosoft365Command(`spo app add -p ${appFilePath} ${overwrite}`, true);
2889+
appId = JSON.parse(app).UniqueId;
28882890
yield executeCLIMicrosoft365Command(`spo app deploy --id ${appId} ${skipFeatureDeployment}`);
28892891
}
28902892
core.info("✅ Upload and deployment complete.");

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)