Skip to content
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

Add package solution zip flag and fix es module import #345

Merged
merged 5 commits into from
May 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11,959 changes: 9,076 additions & 2,883 deletions dist/actions/add-solution-component/index.js

Large diffs are not rendered by default.

11,959 changes: 9,076 additions & 2,883 deletions dist/actions/assign-group/index.js

Large diffs are not rendered by default.

11,959 changes: 9,076 additions & 2,883 deletions dist/actions/assign-user/index.js

Large diffs are not rendered by default.

11,959 changes: 9,076 additions & 2,883 deletions dist/actions/backup-environment/index.js

Large diffs are not rendered by default.

9,676 changes: 5,671 additions & 4,005 deletions dist/actions/branch-solution/index.js

Large diffs are not rendered by default.

11,959 changes: 9,076 additions & 2,883 deletions dist/actions/catalog-status/index.js

Large diffs are not rendered by default.

12,289 changes: 9,241 additions & 3,048 deletions dist/actions/check-solution/index.js

Large diffs are not rendered by default.

11,959 changes: 9,076 additions & 2,883 deletions dist/actions/clone-solution/index.js

Large diffs are not rendered by default.

11,959 changes: 9,076 additions & 2,883 deletions dist/actions/copy-environment/index.js

Large diffs are not rendered by default.

11,959 changes: 9,076 additions & 2,883 deletions dist/actions/create-environment/index.js

Large diffs are not rendered by default.

11,959 changes: 9,076 additions & 2,883 deletions dist/actions/delete-environment/index.js

Large diffs are not rendered by default.

12,289 changes: 9,241 additions & 3,048 deletions dist/actions/delete-solution/index.js

Large diffs are not rendered by default.

12,289 changes: 9,241 additions & 3,048 deletions dist/actions/deploy-package/index.js

Large diffs are not rendered by default.

12,495 changes: 9,344 additions & 3,151 deletions dist/actions/download-paportal/index.js

Large diffs are not rendered by default.

11,959 changes: 9,076 additions & 2,883 deletions dist/actions/export-data/index.js

Large diffs are not rendered by default.

11,959 changes: 9,076 additions & 2,883 deletions dist/actions/export-solution/index.js

Large diffs are not rendered by default.

11,959 changes: 9,076 additions & 2,883 deletions dist/actions/import-data/index.js

Large diffs are not rendered by default.

11,959 changes: 9,076 additions & 2,883 deletions dist/actions/import-solution/index.js

Large diffs are not rendered by default.

11,959 changes: 9,076 additions & 2,883 deletions dist/actions/install-catalog/index.js

Large diffs are not rendered by default.

12,494 changes: 9,343 additions & 3,151 deletions dist/actions/pack-solution/index.js

Large diffs are not rendered by default.

12,369 changes: 9,281 additions & 3,088 deletions dist/actions/publish-solution/index.js

Large diffs are not rendered by default.

11,959 changes: 9,076 additions & 2,883 deletions dist/actions/reset-environment/index.js

Large diffs are not rendered by default.

11,959 changes: 9,076 additions & 2,883 deletions dist/actions/restore-environment/index.js

Large diffs are not rendered by default.

11,960 changes: 9,077 additions & 2,883 deletions dist/actions/submit-catalog/index.js

Large diffs are not rendered by default.

12,494 changes: 9,343 additions & 3,151 deletions dist/actions/unpack-solution/index.js

Large diffs are not rendered by default.

12,289 changes: 9,241 additions & 3,048 deletions dist/actions/update-solution-version/index.js

Large diffs are not rendered by default.

12,289 changes: 9,241 additions & 3,048 deletions dist/actions/upgrade-solution/index.js

Large diffs are not rendered by default.

12,495 changes: 9,344 additions & 3,151 deletions dist/actions/upload-paportal/index.js

Large diffs are not rendered by default.

9,293 changes: 6,605 additions & 2,688 deletions dist/actions/who-am-i/index.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import path from'path';
import pslist from 'ps-list';
import unzip from 'unzip-stream';
import { glob } from 'glob';
import { fileURLToPath } from 'url';
import util from 'util';

import childProcess from 'child_process';
Expand All @@ -41,6 +42,9 @@ const feedPAT = argv.feedPAT || process.env['AZ_DevOps_Read_PAT'];
// list actions (by their name) that are not to be added to the release (test or pre-release actions):
const skippedActionYamls = [ 'data', 'install-application' ];

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

async function clean() {
(await pslist())
.filter((info) => info.name.startsWith('pacTelemetryUpload'))
Expand Down
202 changes: 45 additions & 157 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"dependencies": {
"@actions/artifact": "^1.1.1",
"@actions/core": "^1.10.0",
"@microsoft/powerplatform-cli-wrapper": "^0.1.92",
"@microsoft/powerplatform-cli-wrapper": "^0.1.93",
"date-fns": "^2.30.0",
"fs-extra": "^10.0.0",
"js-yaml": "^4.1",
Expand Down
1 change: 1 addition & 0 deletions src/actions/submit-catalog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export async function main (): Promise<void> {
credentials: getCredentials(),
environmentUrl: getEnvironmentUrl(),
path: parameterMap['path'],
packageSolutionZipFile: parameterMap['package-solution-zip-file'],
solutionZip: parameterMap['solution-zip'],
packageZip: parameterMap['package-zip'],
pollStatus: parameterMap['poll-status']
Expand Down
1 change: 1 addition & 0 deletions src/test/submitCatalog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ describe("submit-catalog tests", () => {
credentials: credentials,
environmentUrl: mockEnvironmentUrl,
path: { name: 'path', required: true, defaultValue: undefined },
packageSolutionZipFile: { name: 'package-solution-zip-file', required: false, defaultValue: 'ExistingPackage' },
solutionZip: { name: 'solution-zip', required: false, defaultValue: undefined },
packageZip: { name: 'package-zip', required: false, defaultValue: undefined },
pollStatus: { name: 'poll-status', required: false, defaultValue: 'false' }
Expand Down
5 changes: 5 additions & 0 deletions submit-catalog/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ inputs:
description: 'Path to catalog submission document.'
required: true

package-solution-zip-file:
description: 'Specify package or solution zip file for catalog submit request. (PackageZipFile, SolutionZipFile, ExistingPackage)'
required: false
default: 'ExistingPackage'

solution-zip:
description: 'Path to solution zip file.'
required: false
Expand Down