Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pyldin601/patch-yaml-through-commit
https://github.com/pyldin601/patch-yaml-through-commit
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/pyldin601/patch-yaml-through-commit
- Owner: pyldin601
- Created: 2020-05-14T15:09:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:27:51.000Z (about 1 year ago)
- Last Synced: 2024-12-08T22:00:12.740Z (about 2 months ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Patch Yaml Through Commit
A Github Action that allows patching yaml files in the other repository and commit changes.
## Example
Below is a brief example on how the action can be used:
```yaml
- name: Bump service image tag
uses: pldin601/patch-yaml-through-commit
with:
git_repo_url: https://pldin601:${{ secrets.REPO_ACCESS_TOKEN }}@github.com/pldin601/some-repository
commit_message: Update images for specific services
yaml_file: path/to/docker-compose.yml
patch_expression: |
services.foo_service.image=myregistry.com/foo_service#new_label
services.bar_service.image=myregistry.com/bar_service#new_label
```## Inputs
### `git_repo_url`
Git repository to connect.
### `committer_name`, `comitter_email`
Name and email on whose behalf a commit will be made.
### `commit_message`
Message for commit.
### `yaml_file`
Path to yaml file which should be patched (related to repository's root).
### `patch_expression`
Pairs of path.to.node=value expresions to patch.
### `dry_run`
If this parameter set, no commit will be made. Just generated diff.