Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
edit

GitHub Action

Edit XML

v1.1

Edit XML

edit

Edit XML

Run xmlstarlet to modify XML in an XML-aware way

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Edit XML

uses: Mudlet/[email protected]

Learn more about this action in Mudlet/xmlstarlet-action

Choose a version

xmlstarlet GitHub Action

The purpose of this GitHub action is to run xmlstarlet on arbitrary files during an action, allowing you to add / delete / edit XML files programatically. For examples, see source1, source2.

Use the GitHub action in the following way:

    uses: Mudlet/xmlstarlet-action@master
    with:
      args: [args to xmlstarlet here]

The args field is used as arguments and options to the xmlstarlet command.

Example:

  - name: delete all @line attributes
    uses: Mudlet/xmlstarlet-action@master
    with:
      args: ed -P -L --delete //@line translations/mudlet.ts

Originally developed and in use in Mudlet.