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

fix: rewrite StepContext env (#832)

* fix: rewrite StepContext env

step env from workflow should be last one to be written
fixes https://github.com/nektos/act/issues/777

* test: verify env correctness

* fix: move test into existing workflow
This commit is contained in:
Ryan 2021-09-28 01:18:59 +00:00 committed by GitHub
parent bd8f62b024
commit c4a90aeef8
2 changed files with 6 additions and 3 deletions

View file

@ -10,4 +10,7 @@ jobs:
with:
who-to-greet: 'Mona the Octocat'
- run: '[[ "${{ env.SOMEVAR }}" == "Mona the Octocat" ]]'
- run: '[ "${SOMEVAR}" = "Not Mona" ] || exit 1'
env:
SOMEVAR: 'Not Mona'
- uses: ./localdockerimagetest_