aidnas/Run sed to replace in side a file in another repository

Usefull to update docker container tags in a gitops setup for automatically triggering deploy

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Feb 22, 2023
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: aidnas/github-action-sed-in-other-repo@0ea4a6df0debce80a92ca6ef9e54c34a6216d84b # v1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
target-fileThe file to run the sed command onyes
sed-regex-matchthe regex match to find and replaceyes
sed-new-valueThe string to fill inyes
destination-github-usernameName of the destination username/organizationyes
destination-repository-nameDestination repositoryyes
user-emailEmail for the git commityes
github-serverGithub servernogithub.com
user-name[Optional] Name for the git commit. Defaults to the destination username/organization nameno""
target-branch[Optional] set target branch name for the destination repository. Defaults to "main"nomain
commit-message[Optional] commit message for the output repository. ORIGIN_COMMIT is replaced by the URL@commit in the origin reponoUpdate from ORIGIN_COMMIT
target-directory[Optional] The directory to wipe and replace in the target repositoryno""

no outputs