somaz94/Image Tag Updater
Updates a specific image tag in a specified file within a target directory.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| target_path | Directory path where the values file is located | yes | — |
| tag_string | The tag string to match for updating the image tag | no | tag |
| new_tag | The new image tag to replace the current one | yes | — |
| target_values_file | The name of the values file to update | no | — |
| github_token | GitHub token for pushing the updated file | yes | — |
| commit_message | Commit message for the update | no | Update image tag in |
| branch | Branch where changes should be committed | no | main |
| git_user_name | Git user.name for commits | no | GitHub Action |
| git_user_email | Git user.email for commits | no | actions@github.com |
| backup | Whether to create a backup file (true/false) | no | false |
| repo | Git repository for commits | yes | — |
| file_pattern | File pattern to match multiple files (e.g., "*.values.yaml") | no | "" |
| dry_run | Run in dry-run mode without making actual changes | no | false |
| debug | Run in debug mode | no | false |
| tag_prefix | Prefix to add to the new tag (e.g., "v", "release-") | no | "" |
| tag_suffix | Suffix to add to the new tag (e.g., "-prod", "-staging") | no | "" |
| update_if_contains | Only update if current tag contains this string (e.g., "v1.", "dev") | no | "" |
| skip_if_contains | Skip update if current tag contains this string (e.g., "latest", "prod") | no | "" |
| summary_file | Path to save change summary JSON file (e.g., ".github/image-updates.json") | no | "" |
Outputs
| name | description |
|---|---|
| files_updated | Number of files updated |
| updated_files | Comma-separated list of updated file paths |
| old_tags | Comma-separated list of previous tag values |
| new_tag_applied | The final tag value that was applied (with prefix/suffix) |
| changes_made | Whether any changes were made (true/false) |
| commit_sha | SHA of the created commit (empty if dry run or no changes) |
| commit_sha_short | Short SHA (7 chars) of the created commit (empty if dry run or no changes) |