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

Expressions for pre-release #13

Open
bootstraponline opened this Issue Dec 6, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@bootstraponline

bootstraponline commented Dec 6, 2018

It looks like there's no way to set the pre-release flag based on an expression.

Issue with input: failed to parse config:
- PreRelease: {{enveq "SNAPSHOT_TAG" "flank_snapshot"}}: value is not in value options (opt[yes,no])

I worked around the issue like this:

 - github-release:
        run_if: enveq "SNAPSHOT_TAG" "flank_snapshot"
        inputs:
        - username: bootstraponline
        - name: Flank $BITRISE_GIT_TAG
        - body: Snapshot release for commit $COMMIT_HASH
        - files_to_upload: "$BITRISE_DEPLOY_DIR/flank.jar|flank.jar"
        - draft: 'no'
        - commit: master
        - tag: "$SNAPSHOT_TAG"
        - pre_release: 'yes'
        - api_token: "$GH_TOKEN"
        title: Github Release - Snapshot Only
    - github-release:
        run_if: not (enveq "SNAPSHOT_TAG" "flank_snapshot")
        inputs:
        - username: bootstraponline
        - name: Flank $BITRISE_GIT_TAG
        - body: Stable release for commit $COMMIT_HASH
        - files_to_upload: "$BITRISE_DEPLOY_DIR/flank.jar|flank.jar"
        - draft: 'no'
        - commit: master
        - tag: "$SNAPSHOT_TAG"
        - pre_release: 'no'
        - api_token: "$GH_TOKEN"
        title: Github Release - Release Only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment