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

Action will break on branches with '/' #17

@AllanRegush

Description

@AllanRegush
await readmeBox.updateSection(table, {
    owner: process.env.GITHUB_REPOSITORY.split('/')[0],
    repo: process.env.GITHUB_REPOSITORY.split('/')[1],
    branch: process.env.GITHUB_REF.split('/')[2], // this will break if branch contains '/'
    token: githubToken,
    section: 'data-section',
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions