askasp/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 Mar 28, 2022
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: askasp/github-action-sed-in-other-repo@5f806e4e7ecdb33d10c7df06c03c344376b6d6a7 # samma

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""
destination-repository-username[Optional] Username/organization for the destination repositoryno""
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