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

How to use VARIABLES for body content? #8

Open
drkNsubuga opened this issue Jan 31, 2023 · 1 comment
Open

How to use VARIABLES for body content? #8

drkNsubuga opened this issue Jan 31, 2023 · 1 comment

Comments

@drkNsubuga
Copy link

drkNsubuga commented Jan 31, 2023

Hello, I tried using a variable to update a section in a README file but it was returned as is.

- name: Update section in readme
      run: 
      SECTION_DETAILS="This is a test content"
      uses: jaywcjlove/github-action-modify-file-content@main
      with:
        path: README.md
        body: "$SECTION_DETAILS"
        openDelimiter: "<!-- start-section -->"
        closeDelimiter: "<!-- end-section -->" 

The file is updated but this is what I see:

<!-- start-section -->
$SECTION_DETAILS
<!-- end-section -->

How can I exactly update the file using variables?

@jaywcjlove
Copy link
Owner

@drkNsubuga Currently not supported, welcome to submit a PR.

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

2 participants