Skip to content

Commit ce64510

Browse files
committed
Make dcm version for ci automatic
1 parent 10b20a2 commit ce64510

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,17 @@ jobs:
3434
- name: Dart Analyze
3535
run: melos run lint:dart
3636

37+
- name: Get DCM version
38+
id: dcm-version
39+
run: |
40+
dcmVersion=$(cat dcm_global.yaml | grep version | cut -d' ' -f2 | sed -r 's/"//g')
41+
echo "DCM_VERSION=$dcmVersion" >> "$GITHUB_OUTPUT"
42+
3743
- name: Install DCM
3844
uses: CQLabs/setup-dcm@v2
3945
with:
4046
github-token: ${{ secrets.GITHUB_TOKEN }}
41-
version: 1.26.2
47+
version: ${{ steps.dcm-version.outputs.DCM_VERSION }}
4248

4349
- name: Run DCM
4450
uses: CQLabs/dcm-action@v2

0 commit comments

Comments
 (0)