Skip to content

Commit 5d94d97

Browse files
author
Joe Doss
committed
Use explicit inheritance of IS_PRERELEASE var.
1 parent 6bfafa9 commit 5d94d97

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.goreleaser.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ after:
1515
# This script depends on IS_PRERELEASE env being set. This is set by CI in the Is Pre-release step.
1616
- cmd: bash scripts/package-repo-import.sh {{ .Var.packageName }} {{ .Version }}
1717
output: true
18+
env:
19+
- IS_PRERELEASE={{ .Env.IS_PRERELEASE }}
1820

1921
builds:
2022
- id: linux-amd64
@@ -189,6 +191,8 @@ publishers:
189191
ids:
190192
- packages
191193
cmd: ./scripts/package-upload.sh {{ abs .ArtifactPath }} {{ .Var.packageName }} {{ .Version }} {{ .Var.packageRelease }}
194+
env:
195+
- IS_PRERELEASE={{ .Env.IS_PRERELEASE }}
192196

193197
snapshot:
194198
version_template: "{{ .Tag }}"

scripts/package-upload.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ FILE="${1}"
77
PACKAGE="${2}"
88
VERSION="${3}"
99

10+
1011
echo "Package File: ${FILE}"
1112
echo "Package: ${PACKAGE}"
1213
echo "Version: ${VERSION}"
13-
echo "Release: ${RELEASE}"
14-
echo "Location: ${GCLOUD_LOCATION}"
1514
echo "Prerelease: ${IS_PRERELEASE}"
1615

1716
if [[ ${IS_PRERELEASE} == "true" ]]; then

0 commit comments

Comments
 (0)