1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

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 2023-01-29 15:47:56 +01:00 committed by GitHub
parent 97fb7ba580
commit 4dd6cc3986
2 changed files with 21 additions and 1 deletions

View file

@ -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'