Skip to content

Commit eae0257

Browse files
authored
chore: print vars for validation (#543)
1 parent 565a10d commit eae0257

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ jobs:
5454
5555
make build
5656
- name: prepare release
57-
run: ./scripts/release/prepare-release.sh
57+
run: echo $LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY != "" && ./scripts/release/prepare-release.sh
5858
- name: publish
5959
run: |
6060
if [[ "$DRY_RUN" = true ]]; then
6161
./scripts/release/publish-dry-run.sh
6262
else
63-
./scripts/release/publish.sh
63+
echo $LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY != "" && ./scripts/release/publish.sh
6464
fi
6565
env:
6666
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ brews:
7272
repository:
7373
owner: launchdarkly
7474
name: homebrew-tap
75-
# token: "{{ .Env.GITHUB_TOKEN }}"
76-
git:
77-
url: [email protected]:launchdarkly/homebrew-tap.git
78-
private_key: "{{ .Env.LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY }}"
75+
token: "{{ .Env.LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY }}"
76+
# git:
77+
# url: [email protected]:launchdarkly/homebrew-tap.git
78+
# private_key: "{{ .Env.LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY }}"
7979
directory: Formula
8080
url_template: "https://github.com/launchdarkly/ld-find-code-refs/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
8181
install: |

.ldrelease/publish.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22

3+
echo "brew deploy key is set: " && echo $LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY != ""
34
# the "publish" makefile target pushes the image to Docker
45
$(dirname $0)/run-publish-target.sh publish
56

.ldrelease/run-publish-target.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ cat "${LD_RELEASE_SECRETS_DIR}/docker_token" | sudo docker login --username "${d
2020
# Set github token to be used in releaser
2121
GITHUB_TOKEN=$(cat ${LD_RELEASE_SECRETS_DIR}/github_token)
2222

23+
echo "brew deploy key is set: " && echo $LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY != ""
2324
sudo PATH=${PATH} GITHUB_TOKEN=${GITHUB_TOKEN} LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY=${LAUNCHDARKLY_HOMEBREW_TAP_DEPLOY_KEY} make $TARGET
2425

2526
# Goreleaser puts all the artifacts in ./dist - copying them to $LD_RELEASE_ARTIFACTS_DIR

0 commit comments

Comments
 (0)