You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting... I'd say this is a bug. There's no specified behavior for skipping other than the assigned paths to ignore. If no assignment is made, the default configuration ignores bin/**, node_modules/** and out/**, none of which should ignore any workflow file. I don't know if the actual behavior is related to the fact that the skipped file is the running workflow file itself.
Hmm, I first thought it might be a permission problem, but then the is ignored message seems weird, cause that only happens if the if statement above it is true.
Definitely a bug I'd say. I'm soon updating another workflow file, so I'll let you know how that goes :)
@Snailedlt is it possible that your token has no read permission for the workflow file, but has for some other files? I don't know if that depth of granularity is supported, but perhaps you'd know if you use it.
I don't think that could even be the cause of the issue, could it?
As far as I can tell that wouldn't affect this if statement, which is what is ran to return that message you see in the first image in the issue description.
@Snailedlt I was wondering if the implemented blob was wrong, maybe only reading the root folder, but it's working fine for me: https://github.com/Logerfo/newline-test/actions/runs/3932390852/jobs/6724891213. Maybe it really is something related to permissions, specially if your repo is in an organization, but I don't know much about GitHub's granularity.
Activity
Logerfo commentedon Jan 11, 2023
Interesting... I'd say this is a bug. There's no specified behavior for skipping other than the assigned paths to ignore. If no assignment is made, the default configuration ignores
bin/**,node_modules/**andout/**, none of which should ignore any workflow file. I don't know if the actual behavior is related to the fact that the skipped file is the running workflow file itself.Snailedlt commentedon Jan 11, 2023
Hmm, I first thought it might be a permission problem, but then the
is ignoredmessage seems weird, cause that only happens if the if statement above it is true.Definitely a bug I'd say. I'm soon updating another workflow file, so I'll let you know how that goes :)
Logerfo commentedon Jan 11, 2023
@Snailedlt is it possible that your token has no read permission for the workflow file, but has for some other files? I don't know if that depth of granularity is supported, but perhaps you'd know if you use it.
Snailedlt commentedon Jan 11, 2023
I don't think that could even be the cause of the issue, could it?
As far as I can tell that wouldn't affect this if statement, which is what is ran to return that message you see in the first image in the issue description.
newline-action/src/main.js
Lines 114 to 117 in d5cb021
Logerfo commentedon Jan 11, 2023
@Snailedlt if the blob object is unaware of the existence of the workflow file, I think that might cause the problem you stumbled upon.
Snailedlt commentedon Jan 11, 2023
I confirmed that it's at least inside .github and .github/workflow folders. Could be permission like you say, any idea how to fix it?

[-]Don't ignore .github/workflow files[/-][+].github/workflow files are being ignored by default[/+][-].github/workflow files are being ignored by default[/-][+].github/workflow files are ignored by default[/+]Logerfo commentedon Jan 11, 2023
@Snailedlt can you confirm that the action is successfully reading files located in directories other than root?
Snailedlt commentedon Jan 12, 2023
Not at the moment because we have to focus on other issues. But once I get around to doing it, I'll let you know :)
Snailedlt commentedon Jan 16, 2023
@Logerfo

So I guess I need to use a different github token then
Logerfo commentedon Jan 16, 2023
@Snailedlt I was wondering if the implemented blob was wrong, maybe only reading the root folder, but it's working fine for me: https://github.com/Logerfo/newline-test/actions/runs/3932390852/jobs/6724891213. Maybe it really is something related to permissions, specially if your repo is in an organization, but I don't know much about GitHub's granularity.
Snailedlt commentedon Jan 16, 2023
Yes, that's beginning to look more and more likely. The project is in a private repo in an organization
pablogamboa commentedon Feb 27, 2023
I'm getting the same issue, the project is a private repo in an organization and it skips the files
connorjchen commentedon Apr 19, 2023
I am getting same issue as well - project is also in private repo in an organization and it is ignored
My files that are being ignored are .github/** as well as .gitignore and .dockerfile in any directory