runner.server icon indicating copy to clipboard operation
runner.server copied to clipboard

actions run service removed parameters of failure

Open ChristopherHX opened this issue 7 months ago • 2 comments
trafficstars

Error when evaluating 'if' for job 'deploy'. .github/workflows/branch_sync.yml (Line: 96, Col: 9): Too many parameters supplied: 'failure'. Located at position 42 within expression: needs.prepare.outputs.sync == 'true' && !failure('macOS', 'linux-pkg') && !cancelled()

Image

ChristopherHX avatar Mar 22 '25 09:03 ChristopherHX

${{ insert }} has not been removed yet, but this could be due to using the old parser.

e.g. the old parser accepts parameters of success, then it is passed to the new backend and it fails.

ChristopherHX avatar Mar 22 '25 09:03 ChristopherHX

matrix expansion seems to be done by the old backend for the next few months

The newtonsoftjson parser behavior is still seen, e.g. fake yaml is accepted

on:
  push:
jobs:
  _:
    runs-on: ubuntu-latest
    #if: ${{ success('hello') }} late runtime error
    strategy: |-
      ${{
        fromjson('{
          matrix: {
            _: [ "a", "b" ]
          }
        }')
      }}
    steps:
    - uses: actions/checkout@v4
      with:
        ${{ insert }}: ${{ fromjson('{}') }}

change: https://github.com/minecraft-linux/mcpelauncher-manifest/commit/e3c54cadaee6d9d77c913828c5bc0be776649ad4

ChristopherHX avatar Mar 22 '25 09:03 ChristopherHX