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
[Bug] step-1 ("Execute script") of "Check YAML consistency" job is broken if generated from project root #1192
Comments
Was it working fine for you in the past? Generally it should already work the same way in both cases. See e. g. the workflows in this repo:
If the bug was reproducible in this case, the consistency check would produce a different YAML here. In the library, we build this path here: Line 111 in 77d8c4e
@Vampire do you have a minute to take a look? I'm having a busy time. |
I think it's the first time I'm running it manually from a terminal where the working directory is the project root. All the other times, I was running it with the run button in IntelliJ (it is lacking in Fleet 😅), and that leads to it being run from the script directory in a terminal tab, where there's no bug. |
@LouisCAD could you first check if you aren't affected by this issue with the Kotlin script cache? https://youtrack.jetbrains.com/issue/KT-64367/ |
I got a similar result to yours with such reproduction:
@LouisCAD please confirm if cleaning the cache makes the script work correctly. |
TODO in this issue: describe https://youtrack.jetbrains.com/issue/KT-64367/ in the FAQ. |
Resolving as not really a bug with the library. Please reopen if needed. |
Action
I ran my workflow generating script from the root folder using the following shell command:
./.github/workflows/publish-plugins.main.kts
Expected
The same content is generated as if I run as
./publish-plugins.main.kts
from the.github/workflows
directory.Actual
run: 'rm ''.github/workflows/publish-plugins.yaml'' && ''publish-plugins.main.kts'''
was generated instead of
run: 'rm ''.github/workflows/publish-plugins.yaml'' && ''.github/workflows/publish-plugins.main.kts'''
.It failed on GitHub at the "Check YAML consistency" job, step "Execute script" because the path to the script was wrong.
https://github.com/Splitties/gradle-dependencies-dsl/actions/runs/7227552380/job/19695431873
Workaround
I ran the script it again after running
cd .github/workflows
, and committed the changes: Splitties/gradle-dependencies-dsl@c273d68Library version
v1.7.0
The text was updated successfully, but these errors were encountered: