test: Do not leak step env in composite (#1585)

* test: Do not leak step env in composite

To prevent merging regressions.

* Update runner_test.go
This commit is contained in:
ChristopherHX authored and GitHub committed 2023-01-29 14:47:56 +00:00
1 parent 932863bef5
commit 3748772201
2 files changed
+21 -1

No files matched your search

@@ -0,0 +1,17 @@
on: push
jobs:
_:
runs-on: ubuntu-latest
steps:
- run: |
runs:
using: composite
steps:
- run: exit 1
if: env.LEAK_ENV != 'val'
shell: cp {0} action.yml
- uses: ./
env:
LEAK_ENV: val
- run: exit 1
if: env.LEAK_ENV == 'val'