Skip to content

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

@michaelmior

Description

@michaelmior

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions