summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/set-env-new-env-file-per-step/push.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2025-01-24 09:00:09 +0100
committerDaniel Baumann <daniel@debian.org>2025-01-24 09:00:09 +0100
commit4bf4dabd48aa70da3699b9a023f22689645d24f4 (patch)
treeed8175444649e71c0ed0e5f1d30101786ca2473e /pkg/runner/testdata/set-env-new-env-file-per-step/push.yml
parentInitial commit. (diff)
downloadforgejo-act-upstream.tar.xz
forgejo-act-upstream.zip
Adding upstream version 1.24.0.HEADupstream/1.24.0upstreamdebian
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'pkg/runner/testdata/set-env-new-env-file-per-step/push.yml')
-rw-r--r--pkg/runner/testdata/set-env-new-env-file-per-step/push.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/runner/testdata/set-env-new-env-file-per-step/push.yml b/pkg/runner/testdata/set-env-new-env-file-per-step/push.yml
new file mode 100644
index 0000000..34f4bad
--- /dev/null
+++ b/pkg/runner/testdata/set-env-new-env-file-per-step/push.yml
@@ -0,0 +1,15 @@
+on: push
+jobs:
+ _:
+ runs-on: ubuntu-latest
+ env:
+ MY_ENV: test
+ steps:
+ - run: exit 1
+ if: env.MY_ENV != 'test'
+ - run: echo "MY_ENV=test2" > $GITHUB_ENV
+ - run: exit 1
+ if: env.MY_ENV != 'test2'
+ - run: echo "MY_ENV=returnedenv" > $GITHUB_ENV
+ - run: exit 1
+ if: env.MY_ENV != 'returnedenv' \ No newline at end of file