|
| 1 | +name: export-and-branch-solution |
| 2 | +# Export solution from DEV environment |
| 3 | +# unpack it and prepare, commit and push a git branch with the changes |
| 4 | + |
| 5 | +on: |
| 6 | + workflow_dispatch: |
| 7 | + push: |
| 8 | + branches: [ main ] |
| 9 | + pull_request: |
| 10 | + branches: [ main ] |
| 11 | + |
| 12 | +jobs: |
| 13 | + export-from-dev: |
| 14 | + runs-on: windows-latest |
| 15 | + env: |
| 16 | + RUNNER_DEBUG: 1 |
| 17 | + |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v2 |
| 20 | + with: |
| 21 | + lfs: true |
| 22 | + |
| 23 | + - name: who-am-i action |
| 24 | + uses: microsoft/powerplatform-actions/who-am-i@v0.1.7 |
| 25 | + with: |
| 26 | + environment-url: '<ENVIRONMENTURL>' |
| 27 | + user-name: '<USERNAME>' |
| 28 | + password-secret: ${{ secrets.password }} |
| 29 | + |
| 30 | + - name: export-solution action |
| 31 | + uses: microsoft/powerplatform-actions/export-solution@v0.1.7 |
| 32 | + with: |
| 33 | + environment-url: '<ENVIRONMENTURL>' |
| 34 | + user-name: '<USERNAME>' |
| 35 | + password-secret: ${{ secrets.password }} |
| 36 | + solution-name: ALMLab |
| 37 | + solution-output-file: out/exported/ALMLab.zip |
| 38 | + |
| 39 | + - name: unpack-solution action |
| 40 | + uses: microsoft/powerplatform-actions/unpack-solution@v0.1.7 |
| 41 | + with: |
| 42 | + solution-file: out/exported/ALMLab.zip |
| 43 | + solution-folder: out/solutions/ALMLab |
| 44 | + solution-type: 'Unmanaged' |
| 45 | + overwrite-files: true |
| 46 | + |
| 47 | + - name: branch-solution, prepare it for a PullRequest |
| 48 | + uses: microsoft/powerplatform-actions/branch-solution@v0.1.7 |
| 49 | + with: |
| 50 | + solution-folder: out/solutions/ALMLab |
| 51 | + solution-target-folder: solutions/ALMLab |
| 52 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 53 | + allow-empty-commit: true |
0 commit comments