Power Platform GitHub Actions automate common build and deployment tasks related to Power Platform. This includes synchronization of solution metadata (a.k.a. solutions) between development environments and source control, generating build artifacts, deploying to downstream environments, provisioning/de-provisioning of environments, and the ability to perform static analysis checks against your solution using the PowerApps checker service.
Перейти к файлу
dependabot[bot] f1c70609a6
Bump gulp from 4.0.2 to 5.0.0 (#558)
2024-04-30 17:45:05 +00:00
.azure-pipelines
.github
.vscode
actions-install
add-solution-component
assign-group
assign-user
backup-environment
branch-solution
build
catalog-status
check-solution
clone-solution
copy-environment
create-environment added support for security-group-id (#541) 2024-04-28 13:47:04 -04:00
delete-environment
delete-solution
deploy-package
dist/actions March Update - PAC v1.31.6 (#528) 2024-03-22 18:57:00 +00:00
download-paportal
export-data
export-solution
hands-on-lab
import-data
import-solution October Release (#470) 2023-10-20 13:30:24 -07:00
install-application
install-catalog
pack-solution
publish-solution
reset-environment
restore-environment
set-online-solution-version
src added support for security-group-id (#541) 2024-04-28 13:47:04 -04:00
submit-catalog
unpack-solution
update-solution-version
upgrade-solution October Release (#470) 2023-10-20 13:30:24 -07:00
upload-paportal
who-am-i
.editorconfig
.eslintrc.js
.gitattributes
.gitignore
.npmrc
CODE_OF_CONDUCT.md
LICENSE
NOTICE.txt
PRIVACY.md
README.md
SECURITY.md
action.yml
gulpfile.mjs added support for security-group-id (#541) 2024-04-28 13:47:04 -04:00
package-lock.json Bump gulp from 4.0.2 to 5.0.0 (#558) 2024-04-30 17:45:05 +00:00
package.json Bump gulp from 4.0.2 to 5.0.0 (#558) 2024-04-30 17:45:05 +00:00
scorch
scorch.cmd
tsconfig.json

README.md

Power Platform Actions

This repo provides multiple GitHub Actions for the Power Platform; for more general info on GitHub Actions. Each action wraps the existing Power Platform CLI.

Detailed documentation on GitHub actions for Power Platform is available here.

Sample workflows and detailed instructions are available in our GitHub actions lab repo but if you are already familiar with GitHub actions and Power Platform solutions, simply add below to your existing workflows; also add the secret MYPASSWORD to your repository's 'Settings' | 'Secrets'

jobs:
  build:

    runs-on: windows-latest   # alternate runner OS is: ubuntu-latest

    steps:
    - name: Install Power Platform Tools
      uses: microsoft/powerplatform-actions/actions-install@v1

    - name: Export Solution
      uses: microsoft/powerplatform-actions/export-solution@v1
      with:
        environment-url: 'https://myenv.crm.dynamics.com'
        user-name: 'me@myenv.onmicrosoft.com'
        password-secret: ${{ secrets.MYPASSWORD }}
        solution-name: aSolution
        solution-output-file: 'aSolution.zip'
        working-directory: 'out'

    - name: Unpack Solution
      uses: microsoft/powerplatform-actions/unpack-solution@v1
      with:
        solution-file: 'out/aSolution1.zip'
        solution-folder: 'out/solutions/solution one'
        solution-type: 'Unmanaged'
        overwrite-files: true

    - name: Publish Solution
      uses: microsoft/powerplatform-actions/publish-solution@v1
      with:
        environment-url: 'https://myenv.crm.dynamics.com'
        user-name: 'me@myenv.onmicrosoft.com'
        password-secret: ${{ secrets.MYPASSWORD }}

    - name: Prepare solution changes for check-in into source control
      uses: microsoft/powerplatform-actions/branch-solution@v1
      with:
        solution-folder: 'out/solutions/solution one'
        solution-target-folder: 'src/solutions/solution1'
        token: ${{ secrets.GITHUB_TOKEN }}

pull-request-validation

Contributing

This project will welcome community contributions in the near future. For suggestions and ideas, please use the Issues section of this repo.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Setting Up Dev Environment

Windows, macOS or Linux:

If developing on Linux or macOS, you will also need to install git-lfs. (It is prepackaged with the Git installer for Windows.) Follow the instructions here for your environment.

Getting Started

Clone, restore modules, build and run:

git clone https://github.com/microsoft/powerplatform-actions.git
cd powerplatform-actions
npm install
gulp

Refreshing actions in dist folder

In a clean working directory, run npm run update-dist and commit and push only the updates in the ./dist folder.

If you have updated the Linux PAC package version (especially from a Windows host), double check that the pac executable has the execute flag set. Run

git ls-tree HEAD dist/pac_linux/tools/pac

and check that the leftmost value should be 100755. Example output:

100755 blob 00034fe2fe80faca43030481877760674409d739    dist/pac_linux/tools/pac

If the file mode does not match, run

git update-index --chmod=+x dist/pac_linux/tools/pac

prior to commiting the changes.

Details

CLI command for pac

References

ADAL/MSAL

CustomerEngagement API

Power Platform Environment Admin (BAP)

How to make GitHub Actions and Build Tools compatible with latest PAC CLI?

Please refer steps in Cli-Wrapper