Skip to content

Commit

Permalink
Merge pull request #5 from quickbirdstudios/feature/new-git-properties
Browse files Browse the repository at this point in the history
replace build_key with branch and commit info
  • Loading branch information
grafele authored Mar 30, 2020
2 parents 59ceffd + b89f03c commit 8faf92b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ workflows:
- upload_url: https://apps.quickbirdstudios.com/apps/10/releases/
- build_key: test
- git_branch_name: master
- git_commit_hash: automatedbitrisetest
- git_commit_hash: 8c411a89ed6d846f064ed0decdba3a857f0d1667
- meta: any meta info
- ipa_path: ./test.ipa
- upload_key: CTq16q37u9W7FZuaaJ
Expand Down
9 changes: 2 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,11 @@ func main() {
upload_key := os.Getenv("upload_key")
fmt.Println("'upload_key':", upload_key)

if len(git_branch_name) > 0 && len(git_commit_hash) > 0 {
fmt.Println("Creating build key out of git_branch_name & git_commit_hash")
build_key = git_branch_name + " - " + git_commit_hash[:7]
fmt.Println("Using created build_key: ", build_key)
}

fmt.Println("Creating Request ...")

extraParams := map[string]string{
"release[build_key]": build_key,
"release[branch]": git_branch_name,
"release[commit]": git_commit_hash,
"release[meta]": meta,
"upload_key": upload_key,
}
Expand Down

0 comments on commit 8faf92b

Please sign in to comment.