Last active
May 13, 2019 07:41
-
-
Save timers-ios/94d22b5803cebe864ea714071123d8cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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