Skip to content

Supprt tags in sub ref directory? #380

@wxiaoguang

Description

@wxiaoguang

The code says:

if ((process.env.GITHUB_REF || '').startsWith('refs/tags')) {
const tag = (process.env.GITHUB_REF || '').split('/').pop();
if (tag !== '' && tag !== undefined) {
return tag;
}
}

If GITHUB_REF=refs/tags/release/0.1.0, then the tag will be 0.1.0, but it should be release/0.1.0

Is the pop done by purpose? Could it support release/0.1.0 and use 0.1.0 as the version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions