Skip to content

Add hashFiles to the toolkit #472

Description

@thisismydesign

Describe the enhancement

I'm writing an action. Would like to call ${{ hashFiles(...) }} and ${{ runner.OS }} and get the result from within the action. Is this possible? I understand I could have these as inputs, however the purpose of my action is to simplify that process.

Code Snippet

Something along these lines:

index.js

const core = require("@actions/core");

async function run() {
  const hash = core.runExpression('hashFiles(...)')
}

run();

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions