Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass empty string to body_path if changes-file is empty #6

Open
wants to merge 1 commit into
base: v0
Choose a base branch
from

Conversation

yksen
Copy link

@yksen yksen commented Jan 22, 2025

Hi, the problem is related to #5. Basically when inputs.changes-file variable is empty then body_path for softprops/action-gh-release is set to inputs.working-directory which results in an Error: EISDIR: illegal operation on a directory, read trying to read a directory.

Failing job example

...
changes-file = 
...
Run softprops/action-gh-release@v2
  with:
    body_path: ./
...
⚠️ Unexpected error fetching GitHub release for tag refs/tags/v0.2.1: Error: EISDIR: illegal operation on a directory, read
Error: EISDIR: illegal operation on a directory, read

Passing an empty string to body_path solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant