-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.52 KB
/
commit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Commit
on:
repository_dispatch:
types: [commit]
concurrency: commit
jobs:
commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.client_payload.branch }}
- name: Export Unmanaged
uses: microsoft/powerplatform-actions/export-solution@v0
with:
environment-url: ${{ github.event.client_payload.environment_url }}
app-id: ${{ secrets.CLIENT_ID }}
client-secret: ${{ secrets.CLIENT_SECRET }}
tenant-id: ${{ secrets.TENANT_ID }}
solution-name: ${{ github.event.client_payload.solution_unique_name }}
solution-output-file: solution.zip
run-asynchronously: true
- name: Export Managed
uses: microsoft/powerplatform-actions/export-solution@v0
with:
environment-url: ${{ github.event.client_payload.environment_url }}
app-id: ${{ secrets.CLIENT_ID }}
client-secret: ${{ secrets.CLIENT_SECRET }}
tenant-id: ${{ secrets.TENANT_ID }}
solution-name: ${{ github.event.client_payload.solution_unique_name }}
solution-output-file: solution_managed.zip
managed: true
run-asynchronously: true
- uses: microsoft/powerplatform-actions/unpack-solution@v0
with:
solution-file: solution.zip
solution-folder: solution
solution-type: Both
- uses: EndBug/add-and-commit@v9
with:
message: ${{ github.event.client_payload.message }}