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

Name of a tag defaults to github.ref#6

Draft
Osiris-Team wants to merge 1 commit intomarvinpinto:masterfrom
Osiris-Team:master
Draft

Name of a tag defaults to github.ref#6
Osiris-Team wants to merge 1 commit intomarvinpinto:masterfrom
Osiris-Team:master

Conversation

@Osiris-Team
Copy link
Copy Markdown

@Osiris-Team Osiris-Team commented Dec 26, 2023

This also should prevent creating a new release and simply upload the assets to the existing release to support repositories that create the release manually but also want to use this action.

Currently when using github.ref as tag name it shows the following error:

...
Generating release tag
  Attempting to create or update release tag "refs/tags/1.9"
  Could not create new tag "refs/tags/refs/tags/1.9" (Sorry, branch or tag names starting with 'refs/' are not allowed.) therefore updating existing tag "tags/refs/tags/1.9"
  Error: Reference does not exist
  D:\a\_actions\marvinpinto\action-automatic-releases\latest\dist\index.js:1
...

@Erudition
Copy link
Copy Markdown

Erudition commented Feb 21, 2024

It gave you the error: Sorry, branch or tag names starting with 'refs/' are not allowed.

github.ref has a whole slash-separated path in it:
https://docs.github.com/en/actions/learn-github-actions/contexts#github-context

Use github.ref_name instead to avoid the slashes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants