Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/update-syntax-description.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,17 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install cf-remote
sudo apt-get install npm
npm install --global prettier
python -m pip install cf-remote cfengine
- name: Install cfengine
run: |
cf-remote --version master download --edition community ubuntu24 amd64 hub
sudo dpkg -i ~/.cfengine/cf-remote/packages/cfengine-community*.deb

- name: Extract new syntax-description
run: |
(
sudo cf-promises --syntax-description json
) > new.json
prettier new.json --write
cfengine format new.json
- name: Set Git user
run: |
git config user.name 'github-actions[bot]'
Expand All @@ -57,7 +54,7 @@ jobs:
rm new.json
fi
- name: Create Pull Request
if: env.CHANGES_DETECTED == 'true'
if: env.CHANGES_DETECTED == 'true'
uses: cfengine/create-pull-request@v6
with:
title: Updated syntax-description.json
Expand Down
Loading
Loading