Skip to content

${{ steps.lychee.outputs.exit_code }} is not set correctly #244

@sebastiaanspeck

Description

@sebastiaanspeck

According to

lychee-action/action.yml

Lines 40 to 43 in 5047c2a

outputs:
exit_code:
description: "The exit code returned from Lychee"
value: ${{ steps.lychee.outputs.exit_code }}
${{ steps.lychee.outputs.exit_code }} should be set, but instead the exit_code is solely saved to an env lychee_exit_code.

IMO the quickest fix is to change it to:

echo "lychee_exit_code=$exit_code" >> $GITHUB_ENV
echo "exit_code=$exit_code" >> $GITHUB_OUTPUT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions