File tree 3 files changed +11
-29
lines changed
3 files changed +11
-29
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
4
4
``` yml
5
5
- name : Mach Composer Cloud - Register version
6
- uses : mach-composer/publish -action@main
6
+ uses : mach-composer/new-component-version -action@main
7
7
with :
8
8
organization : " your-organization"
9
9
project : " project-key"
10
10
component : " component-key"
11
- version : ${GITHUB_SHA:0:7}
12
11
client_id : ${{ secrets.MCC_CLIENT_ID }}
13
12
client_secret : ${{ secrets.MCC_CLIENT_SECRET }}
14
13
` ` `
Original file line number Diff line number Diff line change @@ -23,17 +23,13 @@ inputs:
23
23
required : true
24
24
25
25
runs :
26
- using : ' docker'
27
- image : ' docker://ghcr.io/labd/mach-composer:2-cli'
28
- env :
29
- MCC_CLIENT_ID : ${{ inputs.client_id }}
30
- MCC_CLIENT_SECRET : ${{ inputs.client_secret }}
31
- args :
32
- - cloud
33
- - register-component-version
34
- - --organization
35
- - ${{ inputs.organization }}
36
- - --project
37
- - ${{ inputs.project }}
38
- - --auto
39
- - ${{ inputs.component }}
26
+ using : ' composite'
27
+ steps :
28
+ - name : Install MACH composer
29
+ uses : mach-composer/setup-mach-composer@main
30
+ - name : Register new version
31
+ shell : bash
32
+ env :
33
+ MCC_CLIENT_ID : ${{ inputs.client_id }}
34
+ MCC_CLIENT_SECRET : ${{ inputs.client_secret }}
35
+ run : mach-composer cloud register-component-version --organization ${{ inputs.organization }} --project ${{ inputs.project }} --auto ${{ inputs.component }}
You can’t perform that action at this time.
0 commit comments