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

Triggering non-snapshot release via workflow_run on GitHub Actions #305

Open
michaelmior opened this issue Aug 22, 2024 · 0 comments
Open

Comments

@michaelmior
Copy link
Contributor

michaelmior commented Aug 22, 2024

I'm trying to use sbt-ci-release GitHub Actions. However, instead of the workflow being triggered directly on push, I have it triggered on workflow_run so it only fires after my test suite has successfully completed. This mostly works, but the problem is that GITHUB_REF is not preserved but is instead set to the default branch. It seems like sbt-ci-release thinks it should be snapshot release but then it will (correctly) detect that the version does not contain SNAPSHOT and abort.

Since it's not possible to override GITHUB_REF, it seems I could use something like TRAVIS_TAG as it comes before the GITHUB_REF checks, but this is obviously a bit of a hack. It would be nice if there was a way to explicitly pass the branch and tag to sbt-ci-release.

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

No branches or pull requests

1 participant