Skip to content

Commit

Permalink
CI: Set PROJ_DIR inside the bash lib, not outside. (#11236)
Browse files Browse the repository at this point in the history
* CI: Set `PROJ_DIR` inside the bash lib, not outside.

We can't reference variables set outside.

CHANGELOG_BEGIN
CHANGELOG_END

* CI: Remove an unnecessary `export`.
  • Loading branch information
SamirTalwar authored Oct 13, 2021
1 parent ce64cb2 commit 139b6f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci/bash-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# SPDX-License-Identifier: Apache-2.0

parameters:
var_name: ''
var_name: ""

steps:
- bash: |
set -euo pipefail
TMP=$(mktemp)
PROJ_DIR="$(pwd)"
cat > $TMP <<'END'
cat > "$TMP" <<'END'
PROJ_DIR="$PWD"
escape_slack() {
local r
r="$1"
Expand Down

0 comments on commit 139b6f3

Please sign in to comment.