-
Notifications
You must be signed in to change notification settings - Fork 37
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?] Build step throws error requesting that the updated workflow file be committed despite this already having been done #374
Comments
Hi @SolP-Aleios! Uh oh, lets get to the bottom of this.
My shot in the dark: is it possible that you have a dependency on cdk-pipelines-github that allows github actions to grab the latest, while locally you are not on the latest? We just added a generated comment to the top of the deploy.yml file, and it's possible that your local env doesn't have the latest version while github action does. |
Hi @kaizencc, thanks for the quick response!
Could the issue possibly be to do with how I am passing in the workflowPath? This is how it's written currently:
The deploy.yml generates locally correctly when I run 'cdk synth' though which makes me think it may be a problem elsewhere. |
@SolP-Aleios Did this work before, and suddenly stop working? Or never worked? You should be able to print You can also omit |
@kaizencc This has never worked thus far. Comparing the results of I don't think we are using the default path for |
@SolP-Aleios Aere you using any |
@christophgysin No escape hatches at all |
I'm having the same issue. Using CDK in C# with the NuGet package Error is:
|
Also not using the default workflow path because the CDK code is in a subfolder in the repo. Seems like we'll have to disable this diff check until this gets fixed. |
Same issue on my side using the default workflow path and cdk-pipelines-github version 0.3.125. |
When running my workflow I'm currently receiving the following error:
Prior to this step I changed to the workflows directory shown in the error and ran 'ls' to verify that the deploy.yml file is present, which it is.
Looking at where this error is thrown in pipeline.ts, shown above, this leads me to believe that "this.workflowFile.toYaml()" is somehow different to "readFileSync(this.workflowPath, 'utf8')".
Any idea what the cause of this might be?
The text was updated successfully, but these errors were encountered: