Skip to content

Commit

Permalink
Added export-to-branch github action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryanb58 committed Jun 5, 2023
1 parent 5538e11 commit f890d78
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/export-to-branch.yml
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 }}

0 comments on commit f890d78

Please sign in to comment.