Skip to content

Commit

Permalink
Create CI job to format LiveSplit.AutoSplitters.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
just-ero authored Sep 28, 2023
1 parent 24ceca4 commit eeac834
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/format-xml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Format XML File

on:
pull_request:
types: [closed]
paths:
- 'LiveSplit.AutoSplitters.xml'

jobs:
format:
if: github.event.pull_request.merged == true

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Format .xml file with yq
uses: mikefarah/[email protected]
with:
cmd: yq -i -ox -I4 '.' LiveSplit.AutoSplitters.xml

- name: Commit changes
uses: EndBug/[email protected]
with:
author_name: github-actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
message: Automatic formatting of XML

0 comments on commit eeac834

Please sign in to comment.