-
Notifications
You must be signed in to change notification settings - Fork 9
61 lines (54 loc) · 1.62 KB
/
commit.yml
File metadata and controls
61 lines (54 loc) · 1.62 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: commit-solution
on:
workflow_dispatch:
inputs:
message:
description: 'Commit message'
required: true
default: '.'
type: string
branch:
description: 'Branch to commit to'
default: 'dev'
type: string
required: true
environment:
description: 'Environment to extract solution from'
type: environment
required: true
solution_name:
description: 'solution to extract and commit'
required: true
default: 'TeamsAACQOrchestrator'
type: choice
options:
- TeamsAACQOrchestrator
- taco_publisher
solution-type:
description: 'Export Both or only Unmanaged'
required: true
default: 'Both'
type: choice
options:
- Both
- Unmanaged
jobs:
commit:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
# if: ${{ inputs.message }}
steps:
- uses: actions/checkout@v3
# us GH Personal Access Token to allow other actions to trigger on any changes to the repo
with:
token: ${{ secrets.MY_GITHUB_TOKEN }}
ref: ${{ inputs.branch }}
- uses: ./.github/actions/export-unpack-commit
with:
solution-name: ${{ inputs.solution_name }}
message: ${{ inputs.message }}
environment-url: "${{ secrets.CSD_ENVIRONMENT_URL }}"
tenant-id: "${{ secrets.APP_TENANT_ID }}"
app-id: "${{ secrets.APP_ID }}"
client-secret: "${{ secrets.APP_SECRET }}"
solution-type: ${{ inputs.solution-type }}