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

using actions-find-and-replace-string to escape double quotes #1

Open
woodie opened this issue Apr 29, 2021 · 0 comments
Open

using actions-find-and-replace-string to escape double quotes #1

woodie opened this issue Apr 29, 2021 · 0 comments

Comments

@woodie
Copy link

woodie commented Apr 29, 2021

I need to stuff the github.event.issue.title into a GraphQL query to Monday.com. The column_value is the github.event.issue.title which can contain double-quotes, that mess up the query. WHat's the proper way to do this?

      - id: title
        uses: mad9000/actions-find-and-replace-string@2
        with:
          source: ${{ github.event.issue.title }}
          find: '"' 
          replace: '\\\"'
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

1 participant