Skip to content

Commit d30e347

Browse files
committed
Switch to composite action
1 parent 3e42d77 commit d30e347

File tree

3 files changed

+11
-29
lines changed

3 files changed

+11
-29
lines changed

Dockerfile

-13
This file was deleted.

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33

44
```yml
55
- name: Mach Composer Cloud - Register version
6-
uses: mach-composer/publish-action@main
6+
uses: mach-composer/new-component-version-action@main
77
with:
88
organization: "your-organization"
99
project: "project-key"
1010
component: "component-key"
11-
version: ${GITHUB_SHA:0:7}
1211
client_id: ${{ secrets.MCC_CLIENT_ID }}
1312
client_secret: ${{ secrets.MCC_CLIENT_SECRET }}
1413
```

action.yml

+10-14
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,13 @@ inputs:
2323
required: true
2424

2525
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 }}

0 commit comments

Comments
 (0)