mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
refactor: share UpdateFromEnv logic (#1457)
* refactor: share UpdateFromEnv logic * Add test for GITHUB_OUTPUT Co-authored-by: Ben Randall <veleek@gmail.com> * Add GITHUB_STATE test * Add test for the old broken parser Co-authored-by: Ben Randall <veleek@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
5b3714bfa0
commit
1441baa591
7 changed files with 201 additions and 99 deletions
13
act/runner/testdata/environment-files-parser-bug/push.yaml
vendored
Normal file
13
act/runner/testdata/environment-files-parser-bug/push.yaml
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
on: push
|
||||
jobs:
|
||||
_:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: |
|
||||
echo "test<<World" > $GITHUB_ENV
|
||||
echo "x=Thats really Weird" >> $GITHUB_ENV
|
||||
echo "World" >> $GITHUB_ENV
|
||||
- if: env.test != 'x=Thats really Weird'
|
||||
run: exit 1
|
||||
- if: env.x == 'Thats really Weird' # This assert is triggered by the broken impl of act
|
||||
run: exit 1
|
Loading…
Add table
Add a link
Reference in a new issue