Skip to content

bug: the github action outputs the wrong ref when it contains a / #11

@laurentsenta

Description

@laurentsenta

https://github.com/singulargarden/kubo/actions/runs/5893416836/job/15984909672

I called an action using a branch named feat/with-job-url:

The action's context:

  "action_path": "/home/runner/work/_actions/ipfs/gateway-conformance/feat/with-job-url/.github/actions/extract-fixtures",

Which breaks the ref computation:

echo "action_ref=$(echo ${ACTION_PATH#*/_actions/} | cut -d/ -f3)" >> $GITHUB_OUTPUT
# action_ref = "feat" instead of feat/with-job-url

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