Made env interpolated instead of evaluated. (#1222)

* Made env interpolated instead of evaluated.

* [skip ci] Add Test Workflow file

* Activate Test

* fix Test

Co-authored-by: ChristopherHX <christopher.homberger@web.de>
This commit is contained in:
Grigory Entin
2022-07-27 21:46:04 +02:00
committed by GitHub
parent 17dd54d692
commit ddee19b946
3 changed files with 23 additions and 5 deletions

21
pkg/runner/testdata/evalenv/push.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: CI
on: push
jobs:
test:
runs-on: ubuntu-latest
env:
BUILD_DIR: ${{ github.workspace }}/build
steps:
- name: Dump
run: |
echo "$BUILD_DIR"
echo "$EXPECTED_BUILD_DIR"
echo "$GITHUB_WORKSPACE/build"
env:
EXPECTED_BUILD_DIR: ${{ github.workspace }}/build
- name: Test
run: |
[ "$BUILD_DIR" = "$EXPECTED_BUILD_DIR" ] && [ "$BUILD_DIR" = "$GITHUB_WORKSPACE/build" ]
env:
EXPECTED_BUILD_DIR: ${{ github.workspace }}/build