Skip to content

Action fails when GITHUB_REF does not exist #80

Closed
@billputer

Description

@billputer

Certain workflows don't set a GITHUB_REF variable, because the triggering event doesn't have a branch or tag. See GitHub's docs on GITHUB_REF.

However, this action fails with an error when the GITHUB_REF environment variable doesn't exist, with the output ##[error]Missing required environment value. Are you running in GitHub Actions?.

Metadata

Metadata

Assignees

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