Closed jsoref closed 2 months ago
Tbh. I expected such issues to land before the 9th September.
I wonder if this is accepted, when you use ${{ success() }}
via explicit expressions.
Seems like a lack of CI test material for this case
I will look into this tomorrow.
I have my own self-build of act
in my path and thus the brew
auto update didn't give me the failure ...
I'd encourage you to just add spell-check-this to the CI test material 😉.
Note, the error reporting is lousy.
Error: workflow is not valid. 'spelling.yml': Line: 112 Column 5: Failed to match job-factory: Line: 119 Column 9: Unknown Function Call success
Here's line 112: https://github.com/check-spelling/spell-check-this/blob/0a3288fa36998de2eb46db1e43a134b3acf33e64/.github/workflows/spelling.yml#L112
name: Report (Push)
Line: 119 Column 9: Unknown Function Call success https://github.com/check-spelling/spell-check-this/blob/0a3288fa36998de2eb46db1e43a134b3acf33e64/.github/workflows/spelling.yml#L119 if: (success() || failure()) && needs.spelling.outputs.followup && github.event_name == 'push' That's apparently the problem.
When you use expressions in an
if
conditional, you can, optionally, omit the${{ }}
expression syntax because GitHub Actions automatically evaluates theif
conditional as an expression. However, this exception does not apply everywhere.
Wrapping ${{ ... }}
doesn't help. The only thing I can do is to remove the success()
and failure()
bits
Note, the error reporting is lousy
Yes I know, the goal was error reporting not pretty error reporting.
I thoughtback then that I fixed the parsing problem for special functions.
However it could be that I only fixed hashfiles
My validation code might be just unable to parse the success(0,MAX) and excludes those functions.
hashfiles is defined as (0,255)
Hmm job step if is ok, because it also uses 255 not MAX, seems like I didn't inspect the whole schema file from GitHub Employees for additional aliases.
I used scan with integer placeholder
What's the (end-user) solution here? Roll back to v0.2.65?
Roll back to v0.2.65?
Yes, but know this isn't easy for some package managers.
I created a fix now.
Created https://github.com/nektos/act/releases/tag/v0.2.67
Please tell me if you find other validation issues
Well, I've set up a cron job to try running act daily against spell-check-this and check-spelling: https://github.com/check-spelling-sandbox/act-use-spell-check-this/actions/runs/10801275723/job/29961096172
I haven't hit validation issues, but I've hit:
I don't see anything else that's obviously broken at this time, although that pair is frustrating in that it makes it hard to validate other things.
I haven't hit validation issues, but I've hit:
My resources for investing time into nektos/act are exhausted, my internship semester throttled the time I invest into open source.
Hi I'm getting a different workflow is not valid
for my workflow. It was working on 0.2.65 but it is not working on 0.2.66 or 0.2.67
I'm assuming it is a similar issue as it was introduced at the same time. However the fix #2446 does not fix my issue and my runs are still failing.
Error: workflow is not valid. 'component-test.yaml': Line: 6 Column 3: Failed to match on-string-strict: Line: 4 Column 3: Failed to match branch-protection-rule-string: Line: 6 Column 3: Expected a scalar got mapping
Here is the start of my action, where it fails to parse the workflow_dispatch
name: "Test Changes to a Single Component"
run-name: "[${{ inputs.component }}] | @${{ inputs.push_author != '' && inputs.push_author || github.actor }}"
on:
workflow_dispatch:
inputs:
component:
description: 'The component to test'
required: true
type: string
push_author:
description: 'Author of the push'
required: false
default: ''
type: string
[TRUNCATED]
@amyb-asu: please open a new ticket.
Bug report info
Command used with act
Describe issue
Historically, I'd get this output:
Link to GitHub repository
https://github.com/check-spelling/spell-check-this/tree/0a3288fa36998de2eb46db1e43a134b3acf33e64
Workflow content
Relevant log output
Additional information
No response