CI: Set PROJ_DIR inside the bash lib, not outside. (#11236)

* 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`.
This commit is contained in:
Samir Talwar 2021-10-13 14:55:20 +02:00 committed by GitHub
parent ce64cb2a13
commit 139b6f3b9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,14 +2,14 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
parameters: parameters:
var_name: '' var_name: ""
steps: steps:
- bash: | - bash: |
set -euo pipefail set -euo pipefail
TMP=$(mktemp) TMP=$(mktemp)
PROJ_DIR="$(pwd)" cat > "$TMP" <<'END'
cat > $TMP <<'END' PROJ_DIR="$PWD"
escape_slack() { escape_slack() {
local r local r
r="$1" r="$1"