-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added export-to-branch github action.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Export To Branch | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
solution_name: | ||
description: "Name of the solutions you would like to export." | ||
required: true | ||
|
||
jobs: | ||
export-solution: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Install PAC CLI | ||
run: | | ||
npm install -g @microsoft/powerplatform-cli | ||
- name: Auth and Run PAC Org Who | ||
run: | | ||
pac auth create --kind CDS --url ${{ secrets.POWERPLATFORM_URL }} --username ${{ secrets.POWERPLATFORM_USERNAME }} --password ${{ secrets.POWERPLATFORM_PASSWORD }} | ||
pac org who | ||
env: | ||
POWERPLATFORM_URL: ${{ secrets.POWERPLATFORM_URL }} | ||
POWERPLATFORM_USERNAME: ${{ secrets.POWERPLATFORM_USERNAME }} | ||
POWERPLATFORM_PASSWORD: ${{ secrets.POWERPLATFORM_PASSWORD }} |