summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/set-env-step-env-override/push.yml
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/runner/testdata/set-env-step-env-override/push.yml')
-rw-r--r--pkg/runner/testdata/set-env-step-env-override/push.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkg/runner/testdata/set-env-step-env-override/push.yml b/pkg/runner/testdata/set-env-step-env-override/push.yml
new file mode 100644
index 0000000..f35ef87
--- /dev/null
+++ b/pkg/runner/testdata/set-env-step-env-override/push.yml
@@ -0,0 +1,24 @@
+on: push
+jobs:
+ _:
+ runs-on: ubuntu-latest
+ env:
+ MY_ENV: test
+ steps:
+ - run: exit 1
+ if: env.MY_ENV != 'test'
+ - run: |
+ runs:
+ using: composite
+ steps:
+ - run: exit 1
+ shell: bash
+ if: env.MY_ENV != 'val'
+ - run: echo "MY_ENV=returnedenv" > $GITHUB_ENV
+ shell: bash
+ shell: cp {0} action.yml
+ - uses: ./
+ env:
+ MY_ENV: val
+ - run: exit 1
+ if: env.MY_ENV != 'returnedenv' \ No newline at end of file