Skip to content

Commit 92e2f54

Browse files
authored
Merge pull request #90 from olehermanse/prettier
Switched to using cfengine format instead of prettier for syntax-description.json
2 parents a6f2aee + 12776b0 commit 92e2f54

6 files changed

Lines changed: 112 additions & 508 deletions

File tree

.github/workflows/update-syntax-description.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,17 @@ jobs:
3131
- name: Install dependencies
3232
run: |
3333
python -m pip install --upgrade pip
34-
python -m pip install cf-remote
35-
sudo apt-get install npm
36-
npm install --global prettier
34+
python -m pip install cf-remote cfengine
3735
- name: Install cfengine
3836
run: |
3937
cf-remote --version master download --edition community ubuntu24 amd64 hub
4038
sudo dpkg -i ~/.cfengine/cf-remote/packages/cfengine-community*.deb
41-
4239
- name: Extract new syntax-description
4340
run: |
4441
(
4542
sudo cf-promises --syntax-description json
4643
) > new.json
47-
prettier new.json --write
44+
cfengine format new.json
4845
- name: Set Git user
4946
run: |
5047
git config user.name 'github-actions[bot]'
@@ -57,7 +54,7 @@ jobs:
5754
rm new.json
5855
fi
5956
- name: Create Pull Request
60-
if: env.CHANGES_DETECTED == 'true'
57+
if: env.CHANGES_DETECTED == 'true'
6158
uses: cfengine/create-pull-request@v6
6259
with:
6360
title: Updated syntax-description.json

0 commit comments

Comments
 (0)