Skip to content
This repository was archived by the owner on Jul 17, 2018. It is now read-only.

Commit 1c9334f

Browse files
author
Darren Jones
authored
Merge pull request #218 from danieljamesrees/fix_github_version_param
Use version number not file as parameter
2 parents 867253c + f631c69 commit 1c9334f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ci/tasks/publish-draft-release/publish-draft-release.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,5 +219,6 @@ func main() {
219219

220220
if err != nil {
221221
os.Stderr.WriteString(fmt.Sprintf("Failed to publish draft release - %s\n", err))
222+
os.Exit(1)
222223
}
223224
}

ci/tasks/publish-draft-release/publish-draft-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ run:
1212
- |
1313
cp -R devtools-boshrelease/ci/tasks/publish-draft-release /go/src/
1414
cd /go/src/publish-draft-release
15-
go run publish-draft-release.go ${OWNER} ${REPO} ${VERSION} ${BRANCH}
15+
go run publish-draft-release.go "${OWNER}" "${REPO}" "$(<${VERSION})" "${BRANCH}"

0 commit comments

Comments
 (0)