Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
---
format_version: '6'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
trigger_map:
- tag: "*"
workflow: release_note
workflows:
release_note:
steps:
- activate-ssh-key: {}
- git-clone: {}
- script:
inputs:
- content: |
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
BEFORE=`git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1)`
LATEST=`git describe --abbrev=0 --tags $(git rev-list --tags --skip=0 --max-count=1)`
COMPARE_URL="https://github.com/YYYY/XXXXX/compare/${BEFORE}...${LATEST}"
envman add --key COMPARE_URL --value $COMPARE_URL
title: Set compare URL
- generate-changelog: {}
- github-release:
inputs:
- username: "$GITHUB_USER_NAME"
- name: "$BITRISE_GIT_TAG"
- draft: 'no'
- body: |-
$COMPARE_URL
$BITRISE_CHANGELOG
- api_token: "$GITHUB_ACCESS_TOKEN"
app:
envs:
- opts:
is_expand: false
BITRISE_PROJECT_PATH: XXXX.xcworkspace
- opts:
is_expand: false
BITRISE_SCHEME: XXXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.