Skip to content

Stockopedia/action-octommit

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Octommit V3

Utility to update yaml files in git. Accompanying repo - https://github.com/Stockopedia/octommit

What's new

  • Updated to the node16 runtime by default
    • This requires a minimum Actions Runner version of v2.285.0 to run, which is by default available in GHES 3.4 or later.

Usage

- uses: Stockopedia/octommit@v3
  with:
    github-token: ${{ github.token }}
    organization: Stockopedia
    repository: action-octommit
    source-branch: main
    output-branch: main
    source-path: test-file.yaml
    output-path: test-file.yaml
    set: "tag=v${{ github.sha }}"
    commit-message: "[skip ci] update for job: ${{ github.run_id }}"

See action.yaml for details on defaults and options.

Format of updates

The set, set-array-item and remove-from-array inputs all use the same format to specify path-value pairs. Each pair is specific as:

parent:child=value

Where parent:child is the YAML path for Octommit to act on and value is the new value to be used in the operation.

You can add whitespace around the = and it will be stripped from the path and value.

Multiple path-values

If you wish to specify multiple path-values for a given operation, separate these with the ; character, e.g.

parent1:child1=value1;parent2:child2=value2

Development

Releases

Being a Github Action repository it is neccessary to build the code locally (Run npm run all) and commit the built files otherwise workflows consuming the new tag will continue using the build from the previous release.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5