Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing content when not replace #24

Open
ghost opened this issue Sep 7, 2022 · 0 comments
Open

Removing content when not replace #24

ghost opened this issue Sep 7, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 7, 2022

Hello,

When I use this action on a file that has the same pattern in a parameter that I don't want to replace - and therefore not sending it, the task will replace it with empty string.

for example:

File a.txt:

a=#{param}#
b=#{nana}#

task:

      - name: Replace tokens
        uses: cschleiden/[email protected]
        with:
          files: '["a.txt"]'
        env:
          param: lala

at the end the file will be:

a=lala
b=

but I would like it to be:

a=lala
b=#{nana}#

I think it should replace the parameter only if I gave it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants