Using the setup-ballerina action in a GitHub workflow that publishes packages to the GitHub Package Registry results in un-versioned file errors. This is because the setup-ballerina action fails to clean up the downloaded Ballerina installation artifact file after installing Ballerina. This un-versioned artifact(i.e: .msi, .pkg, .deb) file causes build failures during the publishing process, as publishing requires all files to be versioned.
Suggested Labels:
Bug
Steps to reproduce:
Create a repository with a workflow file containing setup-ballerina action configured with steps to build and release a Gradle package to GitHub package registry.
Run ./gradlew clean release -Prelease.useAutomaticVersion=true
Downloading https://services.gradle.org/distributions/gradle-8.2.1-bin.zip
............10%............20%............30%.............40%............50%............60%............70%.............80%............90%............100%
Welcome to Gradle 8.2.1!
Here are the highlights of this release:
- Kotlin DSL: new reference documentation, assignment syntax by default
- Kotlin DSL is now the default with Gradle init
- Improved suggestions to resolve errors in console output
- Reduced sync memory consumption
For more details see https://docs.gradle.org/8.2.1/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :scan-command:clean UP-TO-DATE
Release process failed, reverting back any changes made by Release Plugin.
> Task :static-code-analysis-tool:createScmAdapter
> Task :static-code-analysis-tool:initScmAdapter
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':static-code-analysis-tool:checkCommitNeeded'.
> You have unversioned files:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
?? ballerina-2[20](https://github.com/Xenowa/static-code-analysis-tool/actions/runs/9380877419/job/25828864897#step:7:21)1.9.0-swan-lake-linux-x64.deb
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Try:
> Task :static-code-analysis-tool:checkCommitNeeded FAILED
> Task :release FAILED
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 12s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.2.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
2 actionable tasks: 1 executed, 1 up-to-date
Error: Process completed with exit code 1.
Description:
Using the
setup-ballerina
action in a GitHub workflow that publishes packages to the GitHub Package Registry results in un-versioned file errors. This is because thesetup-ballerina
action fails to clean up the downloaded Ballerina installation artifact file after installing Ballerina. This un-versioned artifact(i.e:.msi
,.pkg
,.deb
) file causes build failures during the publishing process, as publishing requires all files to be versioned.Suggested Labels: Bug
Steps to reproduce:
Here is the build stacktrace: