-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #1387 #1388
Fixes #1387 #1388
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I think more about the GITHUB_ENV
file parser, act is still to restrictive and should allow all chars other than \n
and \r
as a delimitter after a <<
token.
I can update it to be |
Codecov Report
@@ Coverage Diff @@
## master #1388 +/- ##
==========================================
+ Coverage 57.50% 63.85% +6.34%
==========================================
Files 32 41 +9
Lines 4594 6452 +1858
==========================================
+ Hits 2642 4120 +1478
- Misses 1729 2036 +307
- Partials 223 296 +73
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Thank you it's fine as is from my side, it's good a have one more test for the GITHUB_ENV file. Act has more defects in that code, like this one: 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 just the existing method feels like to need a rewrite ( be aligned to actions/runner's code ) and be factored out into a reusable method. |
I'll leave that to the experts 😎 . Is there anything else I need to do before we can merge this fix? |
Get two more approvals from other maintainers. |
5cdea32
This fixes #1387, or an attempt at it... please let me know if there are any changes required. Thanks!