Skip to content

Commit

Permalink
chore/ci: Prettier MIG_Mose and kohlr_AHB_i results before pushing to…
Browse files Browse the repository at this point in the history
… other repos (#255)

* prettier migmose results

* prettier kohlrahbi results

* fixes
  • Loading branch information
hf-kklein authored Jun 27, 2024
1 parent 0cbf3a4 commit 85085d0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/kohlrahbi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ jobs:
run: |
kohlrahbi ahb --assume-yes --edi-energy-mirror-path edi_energy_mirror --output-path ./machine-readable_anwendungshandbuecher/${{ matrix.format_version }} --format-version ${{ matrix.format_version }} --file-type flatahb --file-type csv --file-type xlsx
kohlrahbi conditions --assume-yes --edi-energy-mirror-path edi_energy_mirror --output-path ./edi_energy_ahb_conditions_and_packages/${{ matrix.format_version }} --format-version ${{ matrix.format_version }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install prettier
run: npm install prettier
- name: prettier JSON files
run: prettier -w machine-readable_anwendungshandbuecher/${{ matrix.format_version }}
- name: Get current time
uses: srfrnk/current-time@master
id: current-time
Expand All @@ -63,6 +71,8 @@ jobs:
branch: update-${{ matrix.format_version }}-${{ steps.current-time.outputs.formattedTime }}
reviewers: hf-krechan
assignees: hf-krechan
- name: prettier condition files
run: prettier -w edi_energy_ahb_conditions_and_packages
- name: Push conditions and packages AHBs to edi energy ahb conditons and packages
uses: peter-evans/create-pull-request@v6
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/migmose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ jobs:
- name: Run Extraction
run: |
migmose -eemp ./edi_energy_mirror -o ./machine-readable_message-implementation-guide -fv ${{ matrix.format_version }} --file-type csv --file-type nested_json --file-type reduced_nested_json
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install prettier
run: npm install prettier
- name: prettier JSON files
run: prettier -w machine-readable_message-implementation-guide
- name: Get current time
uses: srfrnk/current-time@master
id: current-time
Expand Down

0 comments on commit 85085d0

Please sign in to comment.