Skip to content

Commit 505fd45

Browse files
committed
update
1 parent 806b18e commit 505fd45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/deploy-pr.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env bash
22
# Usage: ./deploy-pr.sh
33
# deploys the current branch to a PR environment and posts login credentials to [#pr-deployments](https://codercom.slack.com/archives/C05DNE982E8) Slack channel
4+
set -euox pipefail
5+
46
branchName=$(gh pr view --json headRefName | jq -r .headRefName)
57
if [[ "$branchName" == "main" ]]; then
68
# get commit sha --short

0 commit comments

Comments
 (0)