Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Updating a section in the README using "readme-box" in a GitHub Action #40

Description

@eddiejaoude

Description

I would like to update the a section in the README using readme-box. I get an error ##[error]Contents do not contain start/end comments for section "data-section", the section does exist, I must be missing something else.

Here is my code to update the README:

await readmeBox.updateSection(content, {
            owner: process.env.GITHUB_REPOSITORY.split('/')[0],
            repo: process.env.GITHUB_REPOSITORY.split('/')[1],
            token: githubToken,
            section: 'data-section',
});

Here is the README code:

<!--START_SECTION:data-section-->
<!--END_SECTION:data-section-->

GitHub Action job run https://github.com/EddieJaoudeCommunity/awesome-github-profiles/runs/950486163?check_suite_focus=true

Stack

GitHub Action with NodeJS

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedsolvedwhen question is resolved

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions